minor PBR effect tweak
parent
f18a8f38be
commit
37b45caea2
|
@ -92,7 +92,7 @@ PixelShaderInput main_vs(VertexShaderInput input)
|
||||||
#define NORMALS
|
#define NORMALS
|
||||||
#define UV
|
#define UV
|
||||||
#define HAS_NORMALS
|
#define HAS_NORMALS
|
||||||
#define USE_IBL
|
// #define USE_IBL
|
||||||
#define USE_TEX_LOD
|
#define USE_TEX_LOD
|
||||||
|
|
||||||
DECLARE_TEXTURE(baseColourTexture, 0);
|
DECLARE_TEXTURE(baseColourTexture, 0);
|
||||||
|
|
Binary file not shown.
|
@ -200,7 +200,7 @@ namespace Smuggler
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var parameter = emissiveChannel.Value.Parameter;
|
var parameter = baseColorChannel.Value.Parameter;
|
||||||
|
|
||||||
effect.BaseColorFactor = new Vector4(
|
effect.BaseColorFactor = new Vector4(
|
||||||
parameter.X,
|
parameter.X,
|
||||||
|
@ -230,7 +230,10 @@ namespace Smuggler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
effect.Light = new PBRLight(new Vector3(-0.5f, -0.5f, -0.5f), Color.White.ToVector3());
|
effect.Light = new PBRLight(
|
||||||
|
new Vector3(0.5f, 0.5f, -0.5f),
|
||||||
|
new Vector3(10f, 10f, 10f)
|
||||||
|
);
|
||||||
|
|
||||||
/* FIXME: how to load cube maps from GLTF? */
|
/* FIXME: how to load cube maps from GLTF? */
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue