StrataSource / Engine

Issue tracker for Strata Source
47 stars 2 forks source link

Portal 2 Bug: WorldVertexTransition is super problematic with different parameters #474

Open LilyBorb opened 2 years ago

LilyBorb commented 2 years ago

Describe the bug

WorldVertexTransition doesn't like working with envmaps or detail textures, just turning black if a material is made with too many parameters. WorldVertexTransition should also provide options to have blendable detail and envmap.

To Reproduce

make a WorldVertexTransition add a detail map watch the texture melt and break for extra pain try editing the detailblendmode

Operating System

No response

lvaness commented 2 years ago

Please provide an example map/example vmts to make it easier for us to understand/fix your specific issue

LilyBorb commented 2 years ago

heres a vmt i have, WorldVertexTransition { $basetexture "xen/black_wall_metal_002a" $bumpmap "xen/black_wall_metal_002_height-ssbump" $surfaceprop Metal $ssbump 1

$basetexture2 "xen/flesh1024"
$bumpmap2 "xen/flesh1_nrm"
$surfaceprop2 Flesh

//$detail "detail/detail_tile"
$detailblendmode 9
$detailscale 9

$blendmodulatetexture "xen/blend_texture_02"

hdr { $envmap "xen/black_wall_envmap_002a_hdr" }

$envmap "xen/black_wall_envmap_002a_hdr"
$normalmapalphaenvmapmask 1
$envmaptint "[0.20 0.20 0.20]"

$envmapcontrast 1
$envmapsaturation 0.2
$envmaplightscale .6

}

And it end up glitching and looking like this in game https://imgur.com/a/rl8uwct