nitrooo Posted August 17, 2025 Posted August 17, 2025 Please add "Decal Size" node. Now there is only "Decal Radius" node but decals have also width and height. I think general "Object bounds" node would be very useful too.
silent Posted August 18, 2025 Posted August 18, 2025 nitrooo Could you please let us know the specific use case you’d like to achieve with these parameters in the shader? We’d appreciate a bit more detail. Thank you! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
nitrooo Posted August 18, 2025 Author Posted August 18, 2025 I want to tile decal texture according to its world size. I have achieved this by extracting width and height from Decal Matrix Projection node but this is awkward and heavy. I think instead of Decal Radius it could be Decal Size where x=width, y=height, z=radius.
silent Posted August 18, 2025 Posted August 18, 2025 Looks like that specific task can be solved also via Object-space mapping: No need to know texture size or get this info directly from projection matrix. Thanks! decal_OS_uvs.mgraph How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
nitrooo Posted August 18, 2025 Author Posted August 18, 2025 Yes it can. But what if I want to know, for example, if frag position is at half width of the decal? I still think that Decal Size and Object Bounds nodes should be available. My first thought, while playing around with decal material, was: where is width and height in addition to radius?
Recommended Posts