Exemple #1
0
        private void OnAmbientColorChanged()
        {
            var bufferStruct = new AmbientLightBuffer(ambientColor);

            deviceContext.UpdateSubresource <AmbientLightBuffer>(ref bufferStruct, ambientLightBuffer);
            deviceContext.PixelShader.SetConstantBuffer(1, ambientLightBuffer);
        }
Exemple #2
0
 private void OnAmbientColorChanged()
 {
     var bufferStruct = new AmbientLightBuffer(ambientColor);
     deviceContext.UpdateSubresource<AmbientLightBuffer>(ref bufferStruct, ambientLightBuffer);
     deviceContext.PixelShader.SetConstantBuffer(1, ambientLightBuffer);
 }