forked from Dynamitos/Seele
Implemented basic occlusions queries
This commit is contained in:
1 parent
52c4f11d28
commit
df7fbef8bd
20 files changed
+221
-156
No files matched your search
@@ -55,7 +55,7 @@ struct ShaderPermutation {
|
||||
uint8 hasTaskShader;
|
||||
uint8 useMaterial;
|
||||
uint8 positionOnly;
|
||||
uint8 viewCulling;
|
||||
uint8 depthCulling;
|
||||
uint8 visibilityPass;
|
||||
// TODO: lightmapping etc
|
||||
ShaderPermutation() { std::memset(this, 0, sizeof(ShaderPermutation)); }
|
||||
@@ -89,7 +89,7 @@ struct ShaderPermutation {
|
||||
strncpy(materialName, name.data(), sizeof(materialName));
|
||||
}
|
||||
void setPositionOnly(bool enable) { positionOnly = enable; }
|
||||
void setViewCulling(bool enable) { viewCulling = enable; }
|
||||
void setDepthCulling(bool enable) { depthCulling = enable; }
|
||||
void setVisibilityPass(bool enable) { visibilityPass = enable; }
|
||||
};
|
||||
// Hashed ShaderPermutation for fast lookup
|
||||
|
||||
Reference in new issue
Block a user