Skip to main content
Skip table of contents

Shaders

shaders.disableGammaCorrection(window)

Disables M16 or C48 shader gamma correction

shaders.enableGammaCorrection(window)

Enables M16 or C48 shader gamma correction

shaders.setUpC48gammaCorrection(window, monitor, gamma_grid=None)

Sets up the gamma correction for C48

Parameters:
  • window (PsychoPy.Window object) – A PsychoPy Window object

  • monitor (PsychoPy.Monitor object) – The current monitor being used

  • gamma_grid (list, optional) – The gamma information if it is not contained in the monitor. (gamma_rgb; b_rgb, k_rgb)

shaders.setUpGammaCorrection(device, window, monitor, gamma_information=None)

Sets up the gamma correction for the appropriate video mode

Parameters:
  • device (pypixxlib object) – The current object handle for your device

  • window (PsychoPy.Window object) – A PsychoPy Window object

  • monitor (PsychoPy.Monitor object) – The current monitor being used

  • gamma_information (list, optional) – The gamma information if it is not contained in the monitor.

shaders.setUpM16gammaCorrection(window, monitor, gamma_information=None)

Sets up the gamma correction for M16

Parameters:
  • window (PsychoPy.Window object) – A PsychoPy Window object

  • monitor (PsychoPy.Monitor object) – The current monitor being used

  • gamma_information (list, optional) – The gamma information if it is not contained in the monitor. (gamma, b, k)

shaders.setUpShaderAndWindow(device, window)

Sets up the appropriate shader and functions for the window to work

Parameters:
  • device (pypixxlib object) – The current object handle for your device

  • window (PsychoPy.Window object) – A PsychoPy Window object

Returns:

The OpenGL program number for the generated shader.

Return type:

int

This file is documented directly in the source code. See shaders.py for more information.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.