Rastar Posted February 18, 2015 Share Posted February 18, 2015 For some reason I seem to be unable to Bind the normals buffer in a PostProcess Lua file. In function Script:Render(camera,context,buffer,depth,diffuse,normals,emission) I try to bind the normals to texture2 using normals:Bind(2) but the result is complete blackness. Are they actually passed in to that function? Do I have to do something special/different? Quote Link to comment Share on other sites More sharing options...
shadmar Posted February 18, 2015 Share Posted February 18, 2015 Remember to sample it using texelFetch, you can look at my underwater shader which uses this to apply caustics on normal.y Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Rastar Posted February 18, 2015 Author Share Posted February 18, 2015 Ahhh, texelFetch, that was the missing clue - thanks, shadmar! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.