guzuomuse Posted May 27, 2018 Share Posted May 27, 2018 i 'm learning normalmap using babylonjs i want to apply normalmap use shadermaterial, can anyone show me the code how to to this with babylonjs and cyos---http://cyos.babylonjs.com . the requirement is very simple just a diffusetexture and bumptexture if possible , i don't want any light just like the cyos's basic. if lighting is necessary just set the light color white. many thankssss..... Quote Link to comment Share on other sites More sharing options...
Guest Posted May 29, 2018 Share Posted May 29, 2018 Hello! wouldn't it be simpler to just use the StandardMaterial? It provide diffuse and bump out of the box Quote Link to comment Share on other sites More sharing options...
guzuomuse Posted May 30, 2018 Author Share Posted May 30, 2018 @Deltakosh,yes it's easy with StandardMaterial, but i just want to learn the how to use the babylon's shader and normalmap with shader. in fact i'm a little not satisfy with the light effect with standarmaterial, i want to create a basic normap shader as simple as i can. if possible i don't want to use any lighting i can write shader code with unity 3d,but i don't know how to do this with babylon. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 30, 2018 Share Posted May 30, 2018 bump only works with light as it is a simple normal perturbation that changes how light is applied. Did you check this: - https://doc.babylonjs.com/how_to/shader_material -https://www.babylonjs-playground.com/%23ATDL99%230 - https://www.babylonjs-playground.com/#1WBBW0#1 - https://github.com/BabylonJS/Babylon.js/tree/master/materialsLibrary 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.