Bug #554

renderer2: shader parser issues

Added by IR4T4 almost 5 years ago. Updated over 2 years ago.

Status:Fixed% Done:

100%

Priority:NormalSpent time:-
Assignee:-
Category:Client
Target version:renderer2
OS: Arch:

Description

The following shaders have parser issues/unsupported parms/keywords with r2

models/players/hud/adrenEye
{
    {
         map $whiteimage
         rgbGen const ( 1.0 0.0 0.0 )
    }
}

sprites/morale_axis_aura
{
    nopicmip
    polygonOffset
    nopicmip
    {
        clampmap sprites/morale.jpg
        blendfunc add
        rgbGen const ( 0.2 0.2 0.2 )
        alphaGen wave sin 0.5 0.15 0.2 0.2
        tcMod stretch sin 0.65 0.25 0.2 0.2
        tcMod rotate 10
    }
    {
        clampMap sprites/aura.tga
        blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
        rgbGen const ( 0.8 0.4 0.4 )
        alphaGen wave sin 0.5 0.15 0.2 0.2
        tcMod stretch sin 0.75 0.25 0.2 0.2
        tcMod rotate 15
    }
}

WARNING: missing parenthesis in shader 'sprites/morale_axis_aura’
WARNING: unknown shader stage parameter '0.2’ in shader 'sprites/morale_axis_aura’

WARNING: missing parenthesis in shader 'models/players/hud/adrenEye’
WARNING: unknown shader stage parameter '0.0’ in shader 'models/players/hud/adrenEye’

Thrown for case ')' .


WARNING: shader parameter 'distanceCull’ in shader 'models/foliage/raincircle1’ not implemented.


Related issues

Related to ET: Legacy Development - Bug #552: renderer2: missing foliage support Fixed 01.08.2014
Related to ET: Legacy Development - Bug #547: renderer2: fix alphaGen wave noise X Invalid 25.06.2014

Associated revisions

Revision 032808e5
Added by IR4T4 over 2 years ago

renderer2: fix parser issues & better messages fixes #554 note: r1
doesn’t use Com_ParseExt2() and there are probably more cases where
ComParseExt() should be used to keep compatibility

History

#1 Updated by IR4T4 almost 5 years ago

  • Description updated (diff)

#2 Updated by IR4T4 almost 5 years ago

  • Description updated (diff)

#3 Updated by IR4T4 almost 5 years ago

  • Description updated (diff)

#4 Updated by IR4T4 almost 5 years ago

  • Related to Bug #552: renderer2: missing foliage support added

#5 Updated by IR4T4 almost 5 years ago

  • Target version changed from 2.78 to renderer2

#6 Updated by IR4T4 over 4 years ago

  • Subject changed from renderer2: shader issues to renderer2: shader parser issues

#7 Updated by IR4T4 over 2 years ago

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

#8 Updated by IR4T4 over 2 years ago

  • Related to Bug #547: renderer2: fix alphaGen wave noise X added

Also available in: Atom PDF