Bug #1091

stage liquid doesnt build glsl shader

Added by thunder over 1 year ago. Updated over 1 year ago.

Status:Invalid% Done:

100%

Priority:LowSpent time:-
Assignee:-
Category:-
Target version:renderer2
OS: Arch:

Description

using stage liquid in shader doesnt build the glsl shader for some reason, I tried this in oasis water:

textures/liquids_sd/siwa_water
{
    nocompress
    qer_editorimage textures/liquids_sd/siwa_water
    qer_trans .5
    q3map_globaltexture
    surfaceparm trans
    surfaceparm nonsolid
    surfaceparm water
    surfaceparm nomarks
    cull disable
    nopicmip
    nofog

    waterfogvars ( 0.11 0.13 0.15 ) 0.2
        { 
        stage liquid
        fog on
        map textures/liquids_sd/siwa_water
        blendFunc blend
        alphaFunc GE128
        depthWrite
        rgbgen identity
        tcmod scale 0.5 0.5
        tcmod scroll -.02 .001
        refractionIndex 1.3 // water
                fresnelPower 1.5
                fresnelScale 0.85        // + sinTable[time * 0.4] * 0.25
                fresnelBias  0.0
    }

    { 
        stage liquid
        fog on
        map textures/liquids_sd/seawall_ripple1
        blendFunc GL_ONE GL_ONE
        rgbGen wave sin 0.3 0.02 0 0.25 
        tcmod scale 0.01 0.01
        tcmod scroll -.001 -.0002
        refractionIndex 1.3 // water
                fresnelPower 1.5
                fresnelScale 0.85        // + sinTable[time * 0.4] * 0.25
                fresnelBias  0.0
    }

    { 
        stage liquid
        fog on
        map textures/liquids_sd/seawall_ripple1
        blendFunc GL_ONE GL_ONE
        rgbGen wave sin 0.1 0.03 0 0.4
        tcmod scale 1 1
        tcmod scroll -.005 -.001
        refractionIndex 1.3 // water
                fresnelPower 1.5
                fresnelScale 0.85        // + sinTable[time * 0.4] * 0.25
                fresnelBias  0.0
    }
    { 
        stage liquid
        fog on
        map textures/liquids_sd/siwa_shimshim1
        blendFunc GL_ONE GL_ONE
        rgbGen wave sin 0.4 0.02 0 0.3
        tcmod transform 0 1.5 1 1.5 2 1
        tcmod scroll .005 -.001
        refractionIndex 1.3 // water
                fresnelPower 1.5
                fresnelScale 0.85        // + sinTable[time * 0.4] * 0.25
                fresnelBias  0.0
    }
}

but nothing happend

History

#1 Updated by IR4T4 over 1 year ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Use 'stage liquidMap’ instead. All stage parameter names have this 'Map’ suffix. See 'stage diffuseMap’, 'stage specularMap’ etc.

#2 Updated by IR4T4 over 1 year ago

  • Status changed from Fixed to Invalid

Also available in: Atom PDF