Rick Posted December 17, 2016 Share Posted December 17, 2016 If I have a post effect shader assigned in my scene on Root, how do I get that so that I can manipulate it's value with SetFloat("var", value)? Quote Link to comment Share on other sites More sharing options...
shadmar Posted December 17, 2016 Share Posted December 17, 2016 local shader=Shader:Load("some pp shader") to get a handle. then send the float using shader:SetFloat() 2 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Rick Posted December 17, 2016 Author Share Posted December 17, 2016 I was confused because normally Load() doesn't get a handle to an existing thing but loads a new one but shaders must work differently. 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.