Quantcast
Channel: Answers for "passing a float from script to shader"
Browsing latest articles
Browse All 4 View Live

Answer by equalsequals

Any time you need to communicate with a shader, you can do it through the [Material][1] class. Essentially, you would just get reference to the skybox, perhaps through RenderSettings.skybox: Skybox...

View Article



Answer by kamil.slawicki

thanks! I sort of got it to work the way I wanted. Here's the code I used: var _skybox : Material; var globalLight : GameObject; static var localGameTime : float; static var maxTime : float = 20;...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images