virtualx-engine/drivers/gles2
lawnjelly ecd39094ed GLES2 2D fix normal mapping - batching and nvidia workaround
Normal mapping previously took no account of rotation or flips in any path except the TEXTURE_RECT (uniform draw) method. This passed flips to the shader in uniforms.

In order to pass flips and rotations to the shader in batching and nvidia workaround, a per vertex attribute is required rather than a uniform. This introduces LIGHT_ANGLE which encodes both the rotation of a quad (vertex) and the horizontal and vertical flip.

In order to optionally store light angles in batching, we switch to using a 'unit' sized array which can be reused for different FVF types, as there is no need for a separate array for each FVF, as it is a waste of memory.
2020-08-18 17:49:24 +01:00
..
shaders GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01:00
rasterizer_array_gles2.h GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01:00
rasterizer_canvas_base_gles2.cpp GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01:00
rasterizer_canvas_base_gles2.h GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01:00
rasterizer_canvas_gles2.cpp GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01:00
rasterizer_canvas_gles2.h GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01:00
rasterizer_gles2.cpp GLES2 2D fix normal mapping - batching and nvidia workaround 2020-08-18 17:49:24 +01:00
rasterizer_gles2.h Add shader time scaling 2020-06-06 23:59:48 +02:00
rasterizer_scene_gles2.cpp Merge pull request #38099 from clayjohn/GLES2-skeleton-rebind 2020-04-22 08:23:43 +02:00
rasterizer_scene_gles2.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
rasterizer_storage_gles2.cpp Allow nearest neighbor lookup when using mipmaps 2020-07-19 14:44:42 -07:00
rasterizer_storage_gles2.h GLES2 Batching - prevent baking on VERTEX use in a shader 2020-06-19 09:42:04 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
shader_compiler_gles2.cpp GLES2 Batching - prevent baking on VERTEX use in a shader 2020-06-19 09:42:04 +01:00
shader_compiler_gles2.h GLES2 Batching - prevent baking on VERTEX use in a shader 2020-06-19 09:42:04 +01:00
shader_gles2.cpp Added option to enable high precision float in GLES2 2020-07-30 05:40:15 +02:00
shader_gles2.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