SinhNQ Posted August 3, 2017 Share Posted August 3, 2017 Hello! i begin use ShaderMaterial, i copy Vertex and Fragment from http://shaderfrog.com/app/view/9?view but sphere not visible. This is PG: http://www.babylonjs-playground.com/#15249P Where I am wrong? Thanks you! Quote Link to comment Share on other sites More sharing options...
Hersir Posted August 3, 2017 Share Posted August 3, 2017 @SinhNQI am just starting to write shaders , so not the biggest expert here, but you should us worldViewProjection to calculate position inside vertex shader. PG SinhNQ 1 Quote Link to comment Share on other sites More sharing options...
SinhNQ Posted August 3, 2017 Author Share Posted August 3, 2017 @Hersir Thanks you very much! 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.