OnConfigureShader

OnConfigureShader

1. Definition

Is called by the IShader object before each (!) frame.

2. Method

procedure OnConfigureShader(SlideShowObject: ISlideShowObject; const Progress: Float);

3. Example

procedure OnConfigureShader(SlideShowObject: ISlideShowObject; const Progress: Float);
begin
  var Shader = SlideShowObject as IShader;
  
  Shader.SetParamFloat('gMyParam', Progress * 7); // set value for Pixelshader
end;