mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Texture inheritance for materials, also script access
This commit is contained in:
@@ -440,14 +440,14 @@ namespace GlitchyEngine.Renderer
|
||||
|
||||
if (shaderStage.HasFlag(.Vertex))
|
||||
{
|
||||
_vsShaderResources[slot] = textureBinding._nativeShaderResourceView;
|
||||
_vsSamplers[slot] = textureBinding._nativeSamplerState;
|
||||
_vsShaderResources[slot] = textureBinding?._nativeShaderResourceView;
|
||||
_vsSamplers[slot] = textureBinding?._nativeSamplerState;
|
||||
}
|
||||
|
||||
if (shaderStage.HasFlag(.Pixel))
|
||||
{
|
||||
_psShaderResources[slot] = textureBinding._nativeShaderResourceView;
|
||||
_psSamplers[slot] = textureBinding._nativeSamplerState;
|
||||
_psShaderResources[slot] = textureBinding?._nativeShaderResourceView;
|
||||
_psSamplers[slot] = textureBinding?._nativeSamplerState;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user