summaryrefslogtreecommitdiffstats
path: root/unityplugin
diff options
context:
space:
mode:
Diffstat (limited to 'unityplugin')
-rw-r--r--unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp1
-rw-r--r--unityplugin/GhostCubeScene/src/GhostCubeScene.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp
index f8017f2..b54e84a 100644
--- a/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp
+++ b/unityplugin/GhostCubePlugin/PluginSource/src/SamplePlugin.cpp
@@ -63,6 +63,7 @@ SamplePlugin::SamplePlugin(Diligent::IRenderDevice *pDevice, bool UseReverseZ, T
ShaderCreationAttribs CreationAttribs;
CreationAttribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
CreationAttribs.Desc.DefaultVariableType = SHADER_VARIABLE_TYPE_STATIC;
+ CreationAttribs.UseCombinedTextureSamplers = true;
CreateUniformBuffer(pDevice, sizeof(float4x4), "SamplePlugin: VS constants CB", &m_VSConstants);
diff --git a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
index 4d7b8d7..87ef39e 100644
--- a/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
+++ b/unityplugin/GhostCubeScene/src/GhostCubeScene.cpp
@@ -98,6 +98,7 @@ void GhostCubeScene::OnGraphicsInitialized()
CreationAttribs.pShaderSourceStreamFactory = &BasicSSSFactory;
CreationAttribs.SourceLanguage = SHADER_SOURCE_LANGUAGE_HLSL;
CreationAttribs.Desc.DefaultVariableType = SHADER_VARIABLE_TYPE_STATIC;
+ CreationAttribs.UseCombinedTextureSamplers = true;
CreateUniformBuffer(pDevice, sizeof(float4x4), "Mirror VS constants CB", &m_pMirrorVSConstants);