Project

General

Profile

Bug #21365

Bumped Specular (Mapped) shader does not support the specular alpha channel for shininess

Added by ancassid about 5 years ago.

Status:
New
Severity:
Low
Assignee:
-
Category:
Camera
Target version:
-
Start date:
02/25/2019
% Done:

0%

Version:
Platform:
Linux, OSX, Windows
Expansion:
Core Game
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

Unlike the Unity Standard Specular shader it is based on, Bumped Specular (Mapped) has only a slider for shininess instead of pulling from the alpha channel of the specular map. this makes it difficult for one mesh to have a metallic material next to a non-metallic one, like on the carbon nozzle extension of a rocket engine

I propose passing (specular.a * _Shininess) to the BRDF, to keep backwards compatibility with anything designed for the current version of the shader, since any specular map without alpha the game engine will sample the alpha as 1.

Also available in: Atom PDF