Shader - detect back face facing camera

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
Posts: 341
Joined: Tue Jan 06, 2009 1:12 pm
x 6

Re: Shader - detect back face facing camera

Post by kubatp » Sun Jan 21, 2018 2:53 pm

I read the article here ... ndent.html and it is really too difficult to implement it correctly for me (regard to my knowledge about shaders :? )

I am still curious about the second point Dark Sylinc made. I already have the triangles correctly ordered from the farthest to the nearest. What should I do to fix the problem when the triangles are already correctly ordered?

paroj wrote:
Sat Jan 20, 2018 6:40 pm
for instance use RENDER_QUEUE_SKIES_LATE
Maybe I am missing something here, but this is just the render queue ID, isn't it? The problem I see when I use scene_blend add or modulative is that the result is never transparent or semitransparent so there is no difference if the render queue ID is higher or lower than the render queue of meshes below, I simply don't see them (because the "fog" mesh is not transparent at all).
0 x

Post Reply