hw3web Posted September 4, 2015 Share Posted September 4, 2015 Hi 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; Quote Link to comment Share on other sites More sharing options...
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.