godot/drivers/gles3
lawnjelly 674327b78f GLES3 fix normal map flipping with nvidia workaround
When not using TEXTURE_RECT path, flips have to sent via another method to the shader, to ensure that normal maps are correctly adjusted for direction. This PR adds an extra vertex attribute, LIGHT_ANGLE.

For nvidia workarounds, where the shader still has access to the final transform and extra matrix, the LIGHT_ANGLE can be 0 (no adjustment), 180 degrees for a horizontal flip, and negative indicates a vertical flip.

For batching path, the LIGHT_ANGLE can be used to directly specify the light angle for normal mapping, even when the final transform and extra matrix have been baked into vertex positions, so the same shader can be used for both.
2020-08-23 07:54:58 +01:00
..
shaders GLES3 fix normal map flipping with nvidia workaround 2020-08-23 07:54:58 +01:00
rasterizer_canvas_gles3.cpp GLES3 fix normal map flipping with nvidia workaround 2020-08-23 07:54:58 +01:00
rasterizer_canvas_gles3.h GLES3 fix normal map flipping with nvidia workaround 2020-08-23 07:54:58 +01:00
rasterizer_gles3.cpp GLES3 fix normal map flipping with nvidia workaround 2020-08-23 07:54:58 +01:00
rasterizer_gles3.h GLES3 fix normal map flipping with nvidia workaround 2020-08-23 07:54:58 +01:00
rasterizer_scene_gles3.cpp force depth prepass when using alpha prepass 2020-06-26 15:16:20 -07:00
rasterizer_scene_gles3.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_storage_gles3.cpp Fix OpenGL error when generating radiance 2020-07-21 10:40:49 -07:00
rasterizer_storage_gles3.h GLES3 - add counts for 2d drawcall and 2d items to performance monitor 2020-05-07 11:31:43 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
shader_compiler_gles3.cpp [3.2] Fix shader's length() function parsing in expressions 2020-06-03 19:43:47 +03:00
shader_compiler_gles3.h [3.2] Fix shader's length() function parsing in expressions 2020-06-03 19:43:47 +03:00
shader_gles3.cpp Add support for opengl external textures as defined by https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image_external.txt 2020-03-05 13:09:49 -08:00
shader_gles3.h Add support for opengl external textures as defined by https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image_external.txt 2020-03-05 13:09:49 -08:00