Developer Notes

This issue has been closed as 'Won't Fix' due to an extended period of time without updates. If this issue is important to you please let us know by posting on the AnswerHub or UDN, and Epic will re-open the ticket for further review.

Description

Shader compile error in function PositionOnlyMain() in ShadowDepthVertexShader.usf if defined INTERPOLATE_POSITION.

 LogShaderCompilers:Warning: 1 Shader compiler errors compiling WorldGridMaterial for platform PCD3D_SM5:
 LogShaderCompilers:Warning: Engine/Shaders/ShadowDepthVertexShader.usf(286,2): Shader TShadowDepthVSVertexShadowDepth_OutputDepthPositionOnly, VF FSplineMeshVertexFactory:
 	 error X3004: undeclared identifier 'OutputParameters'
 
 LogShaderCompilers:Warning: 	 error X3004: undeclared identifier 'OutputParameters'

Changed "OutputParameters.PixelPosition = WorldPos;" to "OutParameters.PixelPosition = WorldPos;", but still encountered error with following log.

 LogShaderCompilers:Warning: 1 Shader compiler errors compiling WorldGridMaterial for platform PCD3D_SM5:
 LogShaderCompilers:Warning: Engine/Shaders/ShadowDepthVertexShader.usf(267,25): Shader TShadowDepthVSForGSVertexShadowDepth_OnePassPointLightPositionOnly, VF FSplineMeshVertexFactory:
 	 error X3508: 'PositionOnlyMain': output parameter 'OutParameters' not completely initialized
 
 LogShaderCompilers:Warning: 	 error X3508: 'PositionOnlyMain': output parameter 'OutParameters' not completely initialized

Then add "OutParameters = (FShadowDepthVSToPS)0;" into top line of function PositionOnlyMain(), and there is no error with it.

Could you please review it and apply it to main branch?

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-22427 in the post.

0
Login to Vote

Won't Fix
ComponentUE - Graphics Features
Affects Versions4.8
CreatedOct 21, 2015
ResolvedFeb 14, 2017
UpdatedApr 27, 2018