godot/scene
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
..
2d Merge pull request #50112 from lawnjelly/camera_2d_current 2021-07-22 12:16:44 +02:00
3d Octahedral Normal/Tangent Compression 2021-07-30 10:29:09 -04:00
animation Fixes BlendSpace2D BLEND_MODE_DISCRETE_CARRY. 2021-07-13 10:47:20 +02:00
audio Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
debugger Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
gui Merge pull request #50446 from AnilBK/graphnode-improv-3.x 2021-07-22 16:41:20 +02:00
main Added Node name to print() when printing Nodes. 2021-07-20 13:05:09 +02:00
resources Octahedral Normal/Tangent Compression 2021-07-30 10:29:09 -04:00
register_scene_types.cpp Portal occlusion culling 2021-07-14 11:43:23 +01:00
register_scene_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
scene_string_names.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
scene_string_names.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
SCsub SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00