armory3d/armory

Normal maps don't work with Forward rendering

rpaladin opened this issue · 1 comments

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