Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

Standard Material Diffuse Color Changes

$
0
0

Does anyone know has there been any recent changes in the 3.x (or even 3.1 alpha) that has changed with the the Standard Material JSON...

I just noticed (because I don't really use a standard material with just a color, always have a texture) but whatever ever color I had in the json, its always white in the scene.

The texture shows up fine... but know diffuse color.... Should the json field be 'diffuse' or 'diffuseColor'...

I can't see whats going on... I know the PBR system went thru major changes and some of the old JSON format like 'overloaderAlbedo' was cause problems and force it to look for the the Legacy PBR Material Library... Is there some the like that with the standard material...

 

Please take a look at my material JSON... should render blue... but shows white:

 

		{
			"customType" : "BABYLON.StandardMaterial",
			"ambient" : [
				0,
				0,
				0,
				1
			],
			"diffuse" : [
				0.14114663,
				0.0446582958,
				0.867647052,
				1
			],
			"specular" : [
				0,
				0,
				0,
				1
			],
			"emissive" : [
				0,
				0,
				0,
				1
			],
			"specularPower" : 128,
			"diffuseTexture" : null,
			"diffuseFresnelParameters" : null,
			"ambientTexture" : null,
			"opacityTexture" : null,
			"opacityFresnelParameters" : null,
			"reflectionTexture" : null,
			"reflectionFresnelParameters" : null,
			"emissiveTexture" : null,
			"lightmapTexture" : null,
			"useLightmapAsShadowmap" : false,
			"emissiveFresnelParameters" : null,
			"specularTexture" : null,
			"bumpTexture" : null,
			"useSpecularOverAlpha" : false,
			"disableLighting" : false,
			"useEmissiveAsIllumination" : false,
			"linkEmissiveWithDiffuse" : false,
			"twoSidedLighting" : false,
			"maxSimultaneousLights" : 4,
			"name" : "M_Ground",
			"id" : "f36d005b-1c0e-4ce1-b9e7-5452f6a7efe9",
			"backFaceCulling" : true,
			"wireframe" : false,
			"alpha" : 1,
			"alphaMode" : 2
		},

 

Any help would be awesome :)

 


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>