Skip to content

$Alphatest causing models to go dark #38

@VpSnipes

Description

@VpSnipes

When shining a light (flashlight typically), on any model that uses $alphatest; causes the model to not take light properly-even without the flashlight. Below are two images; one with the alpha on, and the other off.
image
image

You can see how the light affects the one with it off, as a model typically should look if a light is shined on it. Puzzled as to why this is the case, below are the VMT parameters for the Body, cape isn't any different.

"PBR"
{
	"$basetexture" 			"models/souls/ds3/c1280/var1_body_a"
	"$bumpmap"       		"models/souls/ds3/c1280/var1_body_n"
	"$mraotexture"   		"models/souls/ds3/c1280/var1_body_mrao"
	"$speculartexture"  	        "models/souls/ds3/c1280/var1_body_r"
	"$envmap"        		"env_cubemap"

	"$surfaceprop"   		"metal"
	"$model"         		"1"
	"$alphatest"			"1"
	"$alphatestreference"	        "0.6"
}

Creating a large pack with this shader would be beneficial for Garry's Mod, especially if it garners a lot of attention. Issues with lighting regarding the $alphatest, are problematic; personally, I'm not sure if there's ways around this that I'm not aware of. When the pack is uploaded, I'll provide a link here should it gather a large group of people; maybe then, Rubat might actually make it required--if he sees a real need for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions