virtualx-engine/drivers
Omar El Sheikh d274284069 Octahedral Normal/Tangent Compression
Implement Octahedral Compression for normal/tangent vectors
*Oct32 for uncompressed vectors
*Oct16 for compressed vectors

Reduces vertex size for each attribute by
*Uncompressed: 12 bytes, vec4<float32> -> vec2<unorm16>
*Compressed: 2 bytes, vec4<unorm8> -> vec2<unorm8>

Binormal sign is encoded in the y coordinate of the encoded tangent

Added conversion functions to go from octahedral mapping to cartesian
for normal and tangent vectors

sprite_3d and soft_body meshes write to their vertex buffer memory
directly and need to convert their normals and tangents to the new oct
format before writing

Created a new mesh flag to specify whether a mesh is using octahedral
compression or not
Updated documentation to discuss new flag/defaults

Created shader flags to specify whether octahedral or cartesian vectors
are being used

Updated importers to use octahedral representation as the default format
for importing meshes

Updated ShaderGLES2 to support 64 bit version codes as we hit the limit
of the 32-bit integer that was previously used as a bitset to store
enabled/disabled flags
2021-07-30 10:29:09 -04:00
..
alsa Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
alsamidi Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
coreaudio Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
coremidi Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
dummy Clear glErrors instead of crashing when initializing GLES3 2021-06-21 17:53:24 +01:00
gl_context SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
gles2 Octahedral Normal/Tangent Compression 2021-07-30 10:29:09 -04:00
gles3 Octahedral Normal/Tangent Compression 2021-07-30 10:29:09 -04:00
gles_common Batching - fix item_batch_flags stale state 2021-05-23 12:39:15 +01:00
png Merge pull request #47854 from mortarroad/3.x-lossless-webp 2021-06-11 19:35:47 +02:00
pulseaudio Remove duplicate WARN_PRINTS macro 2021-06-18 12:57:59 +01:00
unix Remove unused code related to Travis CI 2021-07-06 11:19:56 +02:00
wasapi Remove duplicate WARN_PRINTS macro 2021-06-18 12:57:59 +01:00
windows Remove duplicate WARN_PRINTS macro 2021-06-18 12:57:59 +01:00
winmidi Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
xaudio2 Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
register_driver_types.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
register_driver_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub Unified GLES2 / GLES3 Batching 2020-10-16 10:34:47 +01:00