Adding a world-space decal causes transparent objects to not draw (ES2)
I'm building an Android project, using the plain ES2 target.
I also test gameplay in SM5 on Windows.
When I add a decal that works fine in SM5, the decal doesn't show up in ES2, AND the transparent game objects I'm drawing no longer draw after this. This happens both on the desktop machine in ES2 preview (using a NVIDIA GTX 980 on Windows 10) as well as on a device (OnePlus One, Android 5.1, Snapdragon 801 / 330 GPU)
Either, this is a bug in the forward renderer state management, or I'm doing something wrong. if I'm doing something wrong, what should I do to properly add a decal to a world object?
Here's how I add the decal to the world:
Here's the decal material (note there's also a "deferred decal" mode, no "forward renderer decal" -- does this matter?)
Here's how I get the location to spawn:
I was thinking perhaps the "location to spawn" is right in front of the camera or something, but I don't think so, as it works fine in SM5, and not when I switch to ES2 render mode, and change nothing else.
Hi jwatte -
In your DefauleEngine.ini you have MobileHDR set to False, in order to render the Decals and Translucency correctly on ES2 Mobile you will need to have MobileHDR set to true. You can do this from Project Settings >> Rendering. You will need to restart the project to have this setting take effect.
answered Dec 01 '15 at 08:27 PM
Lovecraft_K ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here