carla icon indicating copy to clipboard operation
carla copied to clipboard

Shader code mistyped in MaterialTemplate.ush?

Open Lucas-GH opened this issue 1 year ago • 1 comments

Setup Describe the setup you are using to run CARLA along with its version:

  • CARLA version: 0.10.0

Describe the bug When I went through the diffrences between UECarla and UE 5.5, I saw a piece of code in the MaterialTemplate.ush file that appears to have a spelling error.

	switch (PathTracingBufferTextureIndex)
	{
	case 0: return ViewportUV * PathTracingPostProcessInput_0_UVViewportSize + PathTracingPostProcessInput_0_UVViewportMin;
	case 1: return ViewportUV * PathTracingPostProcessInput_1_UVViewportSize + PathTracingPostProcessInput_1_UVViewportMin;
	case 2: return ViewportUV * PathTracingPostProcessInput_2_UVViewportSize + PathTracingPostProcessInput_2_UVViewportMin;
	case 3: return ViewportUV * PathTracingPostProcessInput_3_UVViewportSize + PathTracingPostProcessInput_3_UVViewportMin;
	case 4: return ViewportUV * PathTracingPostProcessInput_4_UVViewportSize + PathTracingPostProcessInput_4_UVViewportMin;
	case 4: return ViewportUV * PathTracingPostProcessInput_5_UVViewportSize + PathTracingPostProcessInput_5_UVViewportMin;
	}

Perhaps the last "case 4" should be "case 5"?

Steps to reproduce Check LINE 3400 in UnrealEngine5_carla\Engine\Shaders\Private\MaterialTemplate.ush.

Screenshots

Image

Lucas-GH avatar Apr 16 '25 10:04 Lucas-GH

You are right, we will be fixing it soon

Blyron avatar Apr 17 '25 09:04 Blyron