Skip to content

Shader code mistyped in MaterialTemplate.ush? #8841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Lucas-GH opened this issue Apr 16, 2025 · 1 comment
Open

Shader code mistyped in MaterialTemplate.ush? #8841

Lucas-GH opened this issue Apr 16, 2025 · 1 comment

Comments

@Lucas-GH
Copy link

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

@Blyron
Copy link
Contributor

Blyron commented Apr 17, 2025

You are right, we will be fixing it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants