Jump to content

Contribution : metal shader for LE3


YouGroove
 Share

Recommended Posts

Thanks smile.png

 

Last shader version with colored reflections now

shader_V10.jpg

 

bloom.jpg

 

PBR workflow : 3D Coat exemple

 

1) Painting PBR in practice for LE3 use :

- When painting metal parts : always keep Roughtness fully specular and make vary only metallic from 0 to 100% to control how much metallic the part will look.

Otherwise you will mislead what is strong specular and what is strong metallic for LE3 Shader ; as they that have similar look in PBR renderers laugh.png , but not the same look in LE3 shader.

 

2) Once exported your maps : Invert Roughness map colors in a painting program , it will be used as specular map in LE3 shader

 

3) Choose these texture for LE3 shader :

- diffuse = diffuse map

- normal map = normal map

- specular = inverted roughness map

- metal = metalness map

- environment map = skycube map

 

You can now make cars , machinery, robots and weapons with metallic look in LE3.

 

 

I called it PBR effect , you can find it in downloads section

http://www.leadwerks.com/werkspace/files/file/578-pbr-shader-effect/

 

 

Some shader code :

//Reflection power : 7
outcolor = mix( outcolor , ( texture(texture4,cubecoord) * outcolor * 7 ) ,color_metalness )	 ;
//Color correction : 0.07
outcolor = ((outcolor + 0.07) * (1-color_specular ) ) ;

  • Upvote 3

Stop toying and make games

Link to comment
Share on other sites

  • 1 month later...
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...