User:SirYodaJedi/Porting IdTech 3 maps to Source/Shader2VMT: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "Some miscellanea for the ../#Converting materials section that would bloat the page if put there. ; blendFunc Can blend textures together (detail textures, glowing textu...")
 
mNo edit summary
Line 1: Line 1:
Some miscellanea for the [[../#Converting materials]] section that would bloat the page if put there.
Some miscellanea for the [[../#Converting materials]] section that would bloat the page if put there.


== Per material ==
; cull none
; cull disable
[[$nocull]]
; deformVertexes autoSprite
[[$spriteorientation]] VP_PARALLEL
; deformVertexes autoSprite2
[[$spriteorientation]] VP_PARALLEL_ORIENTED


== Per texture ==
; blendFunc
; blendFunc
Can blend textures together (detail textures, glowing textures, etc.) and/or be used for translucency, depending upon parameters.
Can blend textures together (detail textures, glowing textures, etc.) and/or be used for translucency, depending upon parameters.

Revision as of 09:06, 12 December 2023

Some miscellanea for the User:SirYodaJedi/Porting IdTech 3 maps to Source#Converting materials section that would bloat the page if put there.

Per material

cull none
cull disable

$nocull

deformVertexes autoSprite

$spriteorientation VP_PARALLEL

deformVertexes autoSprite2

$spriteorientation VP_PARALLEL_ORIENTED

Per texture

blendFunc

Can blend textures together (detail textures, glowing textures, etc.) and/or be used for translucency, depending upon parameters.

alphaFunc

Alphatesting. Unlike Source, Quake III supports alpha-clipping translucent textures. Any textures with translucency will need to not have alpha-testing when ported to Source, and may need to be edited (to sharpen the alpha channel). It takes one parameter:

Parameter Header text Header text
GT0 Greater Than 0.

Usually used in conjunction with

If not translucent (rare):
LT128 Less Than 128.

This designates an inverted alpha channel.

If not translucent:

First invert the alpha channel in an image editor (linear invert).

GE128 Greater than or Equal to 128.

Standard alpha testing; anything less than 127 will be transparent, and anything greater than or equal to 128 will be opaque.

If not translucent:
GE192 Greater than or Equal to 192.

Added in Jedi Academy. Like GE128, but with the clipping threshold set to 192

If not translucent: