flip horizontal UVs of cubemap render
parent
0a7698c315
commit
8407a34c37
BIN
Effects/FXB/LinearDepthEffect.fxb (Stored with Git LFS)
BIN
Effects/FXB/LinearDepthEffect.fxb (Stored with Git LFS)
Binary file not shown.
|
@ -25,6 +25,7 @@ VertexShaderOutput main_vs(VertexShaderInput input)
|
|||
{
|
||||
VertexShaderOutput output;
|
||||
output.Position = mul(input.Position, ModelViewProjection);
|
||||
output.Position.x *= -1; // otherwise cube map render will be horizontally flipped
|
||||
output.PositionWorld = mul(input.Position, Model);
|
||||
return output;
|
||||
}
|
||||
|
|
|
@ -276,7 +276,7 @@ namespace Kav
|
|||
TextureCube skybox
|
||||
) {
|
||||
GraphicsDevice.RasterizerState.CullMode = CullMode.CullClockwiseFace;
|
||||
SkyboxEffect.Skybox = skybox;
|
||||
SkyboxEffect.Skybox = PointShadowCubeMap;
|
||||
|
||||
var view = camera.View;
|
||||
view.Translation = Vector3.Zero;
|
||||
|
|
Loading…
Reference in New Issue