Leadwerks Game Engine

Leadwerks Game Engine

Not enough ratings
PBR Effect
   
Award
Favorite
Favorited
Unfavorite
Type: Shader
File Size
Posted
4.381 KB
2 Mar, 2015 @ 3:20am
1 Change Note ( view )

Subscribe to download
PBR Effect

Description
These shaders mimicks PBR using standard ones.
You have two shaders one for static models and another for animated models like characters.

You need these textures in the material editor in that order :
- diffuse = diffuse map
- normal = normal map
- specular = inverted roughness map colors
- metalness = metalness map
- skybox = skybox map

Once exported your maps from a painting software , Invert Roughness map colors in a painting program.


There is some shader variables that you can tweak :

//Reflection power : 7
outcolor = mix( outcolor , ( texture(texture4,cubecoord) * outcolor * 7 ) ,color_metalness ) ;

//Color correction : 0.07
outcolor = ((outcolor + 0.07) * (1-color_specular ) ) ;
8 Comments
GOD_OF_SCP 5 Jul, 2015 @ 8:26am 
░░░░░▄▄▄░░▄██▄░░░
░░░░░▐▀█▀▌░░░░▀█▄░░░
░░░░░▐█▄█▌░░░░░░▀█▄░░
░░░░░░▀▄▀░░░▄▄▄▄▄▀▀░░
░░░░▄▄▄██▀▀▀▀░░░░░░░
░░░█▀▄▄▄█░▀▀░░
░░░▌░▄▄▄▐▌▀▀▀░░ THIS IS BOB
▄░▐░░░▄▄░█░▀▀ ░░
▀█▌░░░▄░▀█▀░▀ ░░ COPY AND PASTE HIM,
░░░░░░░▄▄▐▌▄▄░░░ SO, HE CAN TAKE
░░░░░░░▀███▀█░▄░░ OVER THE WORKSHOP! :3
░░░░░░▐▌▀▄▀▄▀▐▄░░
░░░░░░▐▀░░░░░░▐▌░░
░░░░░░█░░░░░░░░█░░░
░░░░░▐▌░░░░░░░░░█░░
Кот 28 Jun, 2015 @ 1:13pm 
:D
Holyfakka 27 Jun, 2015 @ 8:43pm 
:D
Loco chase 24 Jun, 2015 @ 3:29pm 
:v
SurprisinglyHung 23 Jun, 2015 @ 7:40pm 
te
DOXY 23 Jun, 2015 @ 10:10am 
facaaaa
Guardian 22 Jun, 2015 @ 12:08am 
Норм вообще только что это такое
Anthony_python 2 Mar, 2015 @ 2:19pm 
thanks a bunch