Skip to content
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

Normal maps don't work with Forward rendering #2866

Open
rpaladin opened this issue Apr 27, 2023 · 0 comments
Open

Normal maps don't work with Forward rendering #2866

rpaladin opened this issue Apr 27, 2023 · 0 comments
Labels
bug This issue describes a bug

Comments

@rpaladin
Copy link
Contributor

TL;TR

Normal maps don't work with Forward rendering.

Node tree example

image

Errors

ERROR: D:\Blender\Projects\RP\0_Build_Files\Mine\A3D\Mobile_Test\build_A3D_Mobile_Test\compiled\Shaders\Material_mesh.frag.glsl:24: 'n' : undeclared identifier
ERROR: D:\Blender\Projects\RP\0_Build_Files\Mine\A3D\Mobile_Test\build_A3D_Mobile_Test\compiled\Shaders\Material_mesh.frag.glsl:24: '' : compilation terminated
ERROR: 2 compilation errors.  No code generated.

Resources

Variable n defined here: https://github.com/armory3d/armory/blob/main/blender/arm/make_world.py#L121
Assignment attempts for the undefined n variable: https://github.com/armory3d/armory/blob/main/blender/arm/material/cycles.py#L402-L408

@rpaladin rpaladin added the bug This issue describes a bug label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes a bug
Projects
None yet
Development

No branches or pull requests

1 participant