forked from Dynamitos/Seele
Implementing switch for image based lighting
This commit is contained in:
1 parent
106dfe0423
commit
d81ea5f8e5
6 files changed
+44
-33
No files matched your search
@@ -102,7 +102,7 @@ struct ShaderPermutation {
|
||||
uint8 visibilityPass;
|
||||
uint8 rayTracing;
|
||||
uint8 dumpIntermediates;
|
||||
// TODO: lightmapping etc
|
||||
uint8 imageBasedLighting;
|
||||
ShaderPermutation() { std::memset(this, 0, sizeof(ShaderPermutation)); }
|
||||
void setTaskFile(std::string_view name) {
|
||||
std::memset(taskFile, 0, sizeof(taskFile));
|
||||
@@ -144,6 +144,7 @@ struct ShaderPermutation {
|
||||
void setDepthCulling(bool enable) { depthCulling = enable; }
|
||||
void setVisibilityPass(bool enable) { visibilityPass = enable; }
|
||||
void setDumpIntermediates(bool enable) { dumpIntermediates = enable; }
|
||||
void setImageBasedLighting(bool enable) { imageBasedLighting = enable; }
|
||||
};
|
||||
// Hashed ShaderPermutation for fast lookup
|
||||
struct PermutationId {
|
||||
|
||||
Reference in new issue
Block a user