Skip to content

Some glass texture in perseus is not lit #3161

@illwieckz

Description

@illwieckz

See the glass texture on the doors:

unvanquished_2024-10-27_020023_000

At first I wondered if that was an overbright bug, but in fact the glass texture looks like it is fullbright, not receiving shadows and then, not light.

I don't know yet if it's a renderer bug or a map compiler bug.

This is the material:

textures/perseus_custom/glass_02
{
	qer_editorImage textures/perseus_custom_src/scratchglass_d

	surfaceparm nomarks
	surfaceparm trans

	{
		map textures/perseus_custom_src/scratchglass_d
		blendfunc add
		rgbGen const ( .1 .1 .1 )
	}
	{
		map $lightmap
		blendfunc gl_dst_color gl_src_alpha
		rgbGen identity
		tcGen lightmap
	}
}

The engine lists the two stages:

------------------------------------------------------------------------------------------- 
num   shaderType shaderSort     stageType              interactLight stageNumber:shaderName 
------------------------------------------------------------------------------------------- 
230   3D_STATIC  BLEND0         COLORMAP               INTERACTLIGHT 0:textures/perseus_custom/glass_02 
230   3D_STATIC  BLEND0         LIGHTMAP               INTERACTLIGHT 1:textures/perseus_custom/glass_02 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions