Skip to content

Add shader parameters in custom shader .cfg doesn't do anything #685

@dnlgrwd87

Description

@dnlgrwd87

I created a custom .cfg and put it in the root of the shaders directory.

minarch_nrofshaders = 3
minarch_shader1 = sharp-shimmerless-grid.glsl
minarch_shader1_filter = LINEAR
minarch_shader1_srctype = source
minarch_shader1_scaletype = source
minarch_shader1_upscale = 1
minarch_shader2 = simpletex_lcd.glsl
minarch_shader2_filter = NEAREST
minarch_shader2_srctype = source
minarch_shader2_scaletype = source
minarch_shader2_upscale = screen
minarch_shader3 = edge1pixel.glsl
minarch_shader3_filter = LINEAR
minarch_shader3_srctype = source
minarch_shader3_scaletype = source
minarch_shader3_upscale = 1

This works fine and is picked up correctly when choosing this preset in the shaders menu. But when I add the following parameters to the .cfg:

GRID_RATIO_Y = 0.15
GRID_RATIO_X = 0.25
GRID_OPACITY_Y = 0.25
GRID_OPACITY_X = 0.40
GRID_INTENSITY = 0.30
GRID_WIDTH = 0.10
GRID_BIAS = 0.20
DARKEN_GRID = 0.10
DARKEN_COLOUR = 0.25
BACKGROUND_INTENSITY = 0.00

These aren't picked up if I choose this preset in the shaders. They are picked up however if I save these changes to the console / game level. Ideally I wouldn't have to go in and change these parameters every time I want to use this preset.

Am I missing something, or is this something that can be implemented? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions