issues
search
FacoBackup
/
pine-engine
pine-engine
5
stars
0
forks
source link
Material system
#27
Open
FacoBackup
opened
2 months ago
FacoBackup
commented
2 months ago
BRDF
1 integer/bool flag for using bump map as vertex height displacement for terrain
9 uniforms for material textures
1 uniform for blend map
1 uniform for shadow atlas
1 uniform for GI + AO
Layers
Metallic + Baked AO + Roughness
Separated textures group together
Created via content browser
Normal + Bump map (Used for terrain)
Albedo + Emissive
Created via content browser;
4 channels
A channel for emissive flag
Blend map
Possibility to bind up to 3 channels (3 layers)
Metallic + Baked AO + Roughness (Separated textures group together;created via content browser; new file type)
Normal
Albedo + Emissive (new file type; Created via content browser; 4 channels, 1 channel for emissive only)
Shadow atlas
GI + AO
4 channels
A channel is AO
Generated at runtime
Debug
Same uniforms of BRDF shader
Integer flag for debug type
Lighting complexity (quantity of lights affecting pixel)
Overdraw based on depth map
Each material channel
Each material layer
Wireframe view
Material Texture file
New implementation of Texture, also managed by texture repository
File type:
Color (albedo + emissive)
BRDF attributes (Metallic + Baked AO + Roughness)
Bump map and normal
Texture base64 data?
Generated at file creation/update time
Biggest image resolution will be the one used for generating blend
Allow choosing resolution also
No link to original textures
Keep small 128 by 128 preview image of source textures
Ability to generate plane mesh for rendering terrain
BRDF
Layers
Metallic + Baked AO + Roughness
Normal + Bump map (Used for terrain)
Albedo + Emissive
Blend map
Shadow atlas
GI + AO
Debug
Material Texture file
Ability to generate plane mesh for rendering terrain