Pryme8 Posted March 15, 2018 Share Posted March 15, 2018 http://www.babylonjs-playground.com/#I30SDL#3 For some reason no matter what I do to my custom material I get no output on my mesh, but no errors as well. Kinda confused as I do this all the time, and this is the first time its been trouble. Even gl_FragColor = vec4(1.); outputs nothing... Quote Link to comment Share on other sites More sharing options...
Guest Posted March 15, 2018 Share Posted March 15, 2018 So multiple things: - input is a reserved keyword in glsl - you cannot set c.rgb = 1.0, you have to cast it to vec3 - because you attached not ready texture to the shader, it will never compile http://www.babylonjs-playground.com/#I30SDL#5 Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 16, 2018 Author Share Posted March 16, 2018 Man, I feel dumb. I had no sleep or food yesterday and was just makin simple mistakes. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted March 16, 2018 Author Share Posted March 16, 2018 http://www.babylonjs-playground.com/#I30SDL#9 thanks Delta! GameMonetize 1 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.