Buckets:
| /*============================================================================= | |
| DirectionalLightVertexShader.hlsl: Directional light vertex shader. | |
| Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. | |
| =============================================================================*/ | |
| float3 LightDirection; | |
| void Main( | |
| FVertexFactoryInput Input, | |
| float LightMask : BLENDWEIGHT0, | |
| out FVertexFactoryInterpolants OutFactoryInterpolants, | |
| out float3 OutTangentLightVector : TEXCOORD4, | |
| out float4 OutWorldLightVector : TEXCOORD5, | |
| out float3 OutCameraVector : TEXCOORD6, | |
| out float4 OutPixelPosition : TEXCOORD7, | |
| out float4 OutPosition : POSITION | |
| ) | |
| { | |
| float4 WorldPosition = VertexFactoryGetWorldPosition(Input); | |
| OutPosition = MulMatrix(ViewProjectionMatrix,WorldPosition); | |
| OutFactoryInterpolants = VertexFactoryGetInterpolants(Input); | |
| OutPixelPosition = WorldPosition; | |
| OutPixelPosition = OutPosition; | |
| float3x3 TangentBasis = VertexFactoryGetTangentBasis(Input); | |
| OutCameraVector = VertexFactoryWorldToTangentSpace(Input,TangentBasis,CameraPosition.xyz - WorldPosition.xyz * CameraPosition.w); | |
| OutTangentLightVector = VertexFactoryWorldToTangentSpace(Input,TangentBasis,LightDirection); | |
| OutWorldLightVector = 0; | |
| OutWorldLightVector.w = LightMask; | |
| } | |
Xet Storage Details
- Size:
- 1.54 kB
- Xet hash:
- 7291e33313d02cd90e17857318c2c2e98054c99c7a5028d66bb713d42a1e773d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.