$phong

From Valve Developer Community
< Es
Revision as of 06:01, 27 February 2024 by Ryo (talk | contribs) (Created page with "{{langsp}} thumb|200px|Sombreado phong en la piel, el pelo y los labios de Alyx. También está disponible en sombreado {{shader Name|Lightmapp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Español (es)Русский (ru)中文 (zh)Translate (Translate)
Sombreado phong en la piel, el pelo y los labios de Alyx.

También está disponible en sombreado Shader-ball.png LightmappedGeneric y Shader-ball.png WorldVertexTransition en todos los juegos desde Counter-Strike: Global Offensive Counter-Strike: Global Offensive. proporcionando reflexión difusa a baja intensidad y resaltado especular, enmascarados con una textura que controla su intensidad mediante téxeles. Para una explicación completa, véase materiales phong.

Note.pngNota:El sombreado phong LightmappedGeneric y WorldVertexTransition solo está disponible en CS:GO rama de motor CS:GO rama de motor. Es necesario que la luz solar ilumine el material de una entidad env_cascade_light para que funcione adecuadamente y usa sombras dinámicas generadas como máscara sobre las máscaras de sombreado tradicional ((en todos juegos desde Strata Source) env_projectedtexture 4 también afecta a los sólidos con sombreado phong activado)

.

Note.pngNota:Phong shading for LightmappedGeneric is also available in Mapbase Mapbase, but it is implemented differently.
Icon-Important.pngImportante:In Black Mesa Black Mesa half-lambertian for new lights is broken. The result is that meshes with $phong or $halflambert get lit from ALL sides perpendicular to newlights, including ones with opposing normals. If you want to use $phong or $halflambert - you are able to fix this with adding in your VMT material parameter "$halflambert_gbuffer_off" "1".

Sintaxis

$phong <bool>
Note.pngNota:Todos los parámetros del siguiente ejemplo deben estar especificados en el material, de otro modo el sombreado phong no se muestra, excepto en Insurgency Insurgency.
Pendiente: Otros juegos que no necesitan parámetros phong (como Portal 2 en adelante)
VertexLitGeneric
{
	$phong 1

	$bumpmap				[texture]
	$phongexponent			5			// either/or
	$phongexponenttexture	[texture]	// either/or
	$phongboost				1.0
	$phongfresnelranges		"[0 0.5 1]"
}


Parámetros

Enmascarado

Warning.pngAviso:There are some caveats regarding $normalmapalphaenvmapmask and $selfillumfresnel when using $phong!


$bumpmap $basemapalphaphongmask $basemapluminancephongmask $phongexponent $phongexponenttexture $phongexponentfactor $invertphongmask $forcephong $diffuseexp $shinyblood $shinybloodexponent

Brillo

$phongboost $phongfresnelranges $phongdisablehalflambert

Colores

$phongalbedotint $phongalbedoboost

The Hunter without and with its $phongwarptexture, showing how it affects the Phong reflection.

$phongtint

Breakdown of the $phongwarptexture: computed coordinates, texture and result

$phongwarptexture

Brush phong in Counter-Strike: Global Offensive Counter-Strike: Global Offensive using tile/hr_t/inferno/tile_a. Note the complete absence of the reflection in the shaded area.

Parámetros de sombreado de sólidos (only in CS:GO rama de motor)(también en Garry's Mod)

$phongmaskcontrastbrightness $phongamount $phongbasetint

Comandos de consola

mat_phong <boolean(en)>
Desactiva o activa el sombreado phong. Por defecto 1.

Véase también

Enlaces externos