1
Programming / Re: New CRT-style shader & questions about provided uniforms
« on: September 09, 2021, 06:22:05 pm »
It cannot have a variable property. If you want to pass an attribute or uniform into a fragment, you will need to declare a separate variable attribute. THREE does most of the hidden "preset" shading on your behalf. You can avoid this by using RawShaderMaterial. Passing a very large number to a shader is a bad idea. You may lose accuracy. For example, if you pass three traps.Time. Call it a uniform time-lapse and do a sine (time) in your shader, you will get stuck.