Redo of render paths

This commit is contained in:
Dynamitos committed 2020-06-02 11:46:18 +02:00
1 parent bb5b48698a
commit 356e6058fe
121 files changed
+3890 -572

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
import LightEnv;
import Material;
import BRDF;
import InputGeometry;
struct FlatColorMaterial : IMaterial
{
float3 diffuseColor;
float specularity;
typedef BlinnPhong BRDF;
BlinnPhong prepare(MaterialPixelParameter input)
{
BlinnPhong result;
result.baseColor = diffuseColor;
result.specular = specularity;
result.normal = normalize(input.normal);
result.roughness = 0.5;
result.specularTint = 0;
result.anisotropic = 1;
result.sheen = 1;
result.sheenTint = 0.5;
result.clearCoat = 0;
result.clearCoatGloss = 0;
return result;
}
};