Search the Community
Showing results for tags 'texture shaders'.
Found 1 result
Dynamic texture for shaders
hw3web posted a topic in Questions & AnswersHi there , how could I load picture to shaders like pic1 : www.abc.com/pic1.jpg, pic2 : www.abc.com/pic2.jpg, pic3 : www.abc.com/pic3.jpg so then I can use uniform sampler2D pic1; uniform sampler2D pic2; uniform sampler2D pic3; vec3 color1 = texture2D(pic1, vUV).rgb; vec3 color2 = texture2D(pic3, vUV).rgb; vec3 color3 = texture2D(pic3, vUV).rgb;