splash27 Posted December 18, 2017 Share Posted December 18, 2017 I tried to apply these properties to default playground tutorial, but there was no effect: https://www.babylonjs-playground.com/#24C4KC#17 grassTexture.grassColor = new BABYLON.Color4(1,0,0,1); grassTexture.groundColor = new BABYLON.Color4(1,0,1,1); Quote Link to comment Share on other sites More sharing options...
brianzinn Posted December 18, 2017 Share Posted December 18, 2017 grassColors (with an "s") is an array" https://www.babylonjs-playground.com/#24C4KC#33 docs: https://doc.babylonjs.com/extensions/grassproceduraltexture edit: only first 3 grassColors are used in the shader (https://github.com/BabylonJS/Babylon.js/blob/master/proceduralTexturesLibrary/src/grass/babylon.grassProceduralTexture.ts) splash27 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 18, 2017 Share Posted December 18, 2017 Cool. When the grass is in the tree, it sure is difficult to mow. (esp with a rider lawn mower) Quote Link to comment Share on other sites More sharing options...
splash27 Posted December 19, 2017 Author Share Posted December 19, 2017 Thanks! "How To" docs must be fixed then, because there is a grassColor as a single color. https://doc.babylonjs.com/how_to/how_to_use_procedural_textures brianzinn 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted December 19, 2017 Share Posted December 19, 2017 *nod* Are you going to do your first docs edit, Splash? https://github.com/BabylonJS/Documentation/blob/master/content/How_To/material/How_to_use_Procedural_Textures.md There it is, written in github 'markdown' (md). The little pencil icon in the upper right of the document area... is the start of the adventure. 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.