renjianfeng Posted July 16, 2018 Share Posted July 16, 2018 When using TerrainMaterial, I added the default rendering pipeline. TerrainMaterial and StandardMaterial showed different effects under the same parameters. Is that expected? , the same problem appears on the WaterMaterial. https://www.babylonjs-playground.com/#E6OZX#200 Quote Link to comment Share on other sites More sharing options...
renjianfeng Posted July 16, 2018 Author Share Posted July 16, 2018 If the default rendering pipeline is not used, TerrainMaterial and StandardMaterial materials will return the same effect: https://www.babylonjs-playground.com/#E6OZX#201 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 17, 2018 Share Posted July 17, 2018 This is because the material has to output linear color instead of gamma color when used with DefaultRenderingPipeline This is where it is done: https://github.com/BabylonJS/Babylon.js/blob/master/src/Shaders/default.fragment.fx#L435 perhaps @Luaacro would be interested by adding this feature to the terrain material? julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted July 23, 2018 Share Posted July 23, 2018 Sure !! Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted July 23, 2018 Share Posted July 23, 2018 Maybe it should be added on all materials with at least a diffuse color ? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 23, 2018 Share Posted July 23, 2018 yep Quote Link to comment Share on other sites More sharing options...
julien-moreau Posted July 27, 2018 Share Posted July 27, 2018 Added to my todo list 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.