Backlog/engine/rend/shaders/sceneShared.hlsli

27 lines
742 B
HLSL

struct Scene
{
float4x4 Model;
uint textureMode; // 0 = regular triple,
// 0x10 = video yuv,
// bit 0 == srgb correction
// bit 1 == fullbright // 0x2
// bit 2 = reserved
// bit 3 = reserved
// bit 4 - 7 = color space:
// 0 -> regular rgb
// 1 -> regular video yuv // used for decoding video files
int animation; // -1 means no animation, any non-zero value means an index into the animationBuffer
uint flags; // 0 -> 0: always in front
// 1 -> 1: useAltCamera
// 2 -> 2: billboard (& 0x4)
float float0; // uses:
// in billboard mode: this represents the size
};
uint isBillboard(Scene s)
{
return s.flags & 0x4;
}