Update rendering, material handling, and shading logic
Changed README.md to update rendering settings and build instructions. Changed BSDF.h to add functions for normal unpacking and tangent transformation. Changed RayIntersection.h to include tangent vector in hit_result_t. Changed Common.h to include vec2.h for 2D vector handling. Changed String.h to add string_copy function and improve is_absolute_path. Changed GeometryUtilities.h to enhance quad creation with tangent calculations. Changed Mesh.h to include tangents in the vertex structure. Changed Triangle.h to add tangents in the vertex structure for better normal mapping. Changed Light.h to include tangents in the light shading context. Changed SkyLight.h to introduce a new structure for sky lights. Changed Material.h to include tangents in the shading context. Changed SimpleLit.h to add normal and tangent textures for detailed shading. Changed Texture.h to introduce a new structure for texture assets. Changed BSDF.c to add functions for unpacking normals and transforming tangents. Changed PathTracing.c to include tangents in the shading context. Changed RayIntersection.c to calculate normals and tangents in ray-triangle intersections. Changed Mesh.c to improve material texture loading and handle tangents. Changed Material.c to enhance material collection initialization and resizing. Changed SimpleLit.c to incorporate normal mapping with normal textures. Changed Texture.c to improve management of texture assets and resources.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
typedef struct
|
||||
{
|
||||
vec3s albedo;
|
||||
vec3s normal;
|
||||
float roughness;
|
||||
float metallic;
|
||||
} simple_lit_data_t;
|
||||
@@ -19,6 +20,7 @@ typedef struct
|
||||
float metallic;
|
||||
|
||||
texture_entity_t albedo_texture;
|
||||
texture_entity_t normal_texture;
|
||||
texture_entity_t roughness_texture;
|
||||
texture_entity_t metallic_texture;
|
||||
} simple_lit_properties_t;
|
||||
|
||||
Reference in New Issue
Block a user