Search the Community
Showing results for tags 'standardmaterial'.
Found 3 results
maecky posted a topic in Questions & AnswersHi, I am playing around with the StandardMaterial settings and I came across an issue. If I set the alpha value of the StandardMaterial weird rendering glitches appear on my mesh. You can see it in the playground example if you rotate the mesh around. Setting the alpha to 0.9999 makes no sense, I am aware of that but I am trying to write a shader based on the StandardMaterial and I do want to set parts of the mesh transparent - therefore I think I do need alphaBlending enabled (e.g.: gl_color = vec4(1.0, 0.0, 1.0, 0.5)). Is there a possibility to fix this? http://www.babylonjs-playground.com/#AFH1MN#1 Thanks for your help!
When i recreate texture or material, clone/dispose created more one texture (clone logic incorrect material.texture.clone() and material._texture.clone()) example https://www.babylonjs-playground.com/indexstable#Y48SUQ this is very important for dynamic scene, please fix source ** I tryed run in this latest version and saw what recreate correctry, but i not undersend how... and other -- i see what canvas2D will be not suported in future? I see GUI, this is very cool feature, but GIU can't do many tasks... Tell me whether it is possible to work with canvas2d in babylon.js 3.0, or will the support be returned in the future?
Hey folks, I just wanted to place an svg with transparency over a green base material. I added the diffuseColor and the diffuseTexture and then set the diffsueTexture.hasAlpha to true. I assumed the texture would be over the color... but it ain't. The texture gets tinted and where the texture has transparency the mesh is transparent... but that's not what I want Here is a playground where I tired. What I want: a green sphere with leaves drawn on top without having to create a second slightly bigger sphere or something like that. http://www.babylonjs-playground.com/#1JW2TH How could I achieve that? Should be easy, right? But I have no idea what I am doing wrong