Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions src/engine/renderer/tr_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,6 @@ static inline void halfToFloat( const f16vec4_t in, vec4_t out )
bool tcGen_Environment;
bool tcGen_Lightmap;

bool heightMapInNormalMap; // material has normalmap suited for parallax mapping
bool implicitLightmap;

Color::Color32Bit constantColor; // for CGEN_CONST and AGEN_CONST
Expand Down Expand Up @@ -1125,6 +1124,22 @@ static inline void halfToFloat( const f16vec4_t in, vec4_t out )
expression_t fresnelScaleExp;
expression_t fresnelBiasExp;

// Available textures.
bool hasNormalMap;
bool hasHeightMap;
bool isHeightMapInNormalMap;
bool hasMaterialMap;
bool isMaterialPhysical;
bool hasGlowMap;

// Available features.
bool enableNormalMapping;
bool enableDeluxeMapping;
bool enableParallaxMapping;
bool enablePhysicalMapping;
bool enableSpecularMapping;
bool enableGlowMapping;

// normalMap channel scale, negative value flips channel
bool hasNormalScale;
vec3_t normalScale;
Expand Down Expand Up @@ -1212,7 +1227,6 @@ static inline void halfToFloat( const f16vec4_t in, vec4_t out )
fogPass_t fogPass; // draw a blended pass, possibly with depth test equals
bool noFog;

bool heightMapInNormalMap; // material has normalmap suited for parallax mapping
bool noParallax; // disable parallax for this material even if it's available
float parallaxOffsetBias; // offset the heightmap top relatively to the floor
float parallaxDepthScale; // per-shader parallax depth scale
Expand Down
Loading