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

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