a bit of stuff, time to add spirv-link into this project

This commit is contained in:
2026-02-23 01:42:17 +02:00
parent c00ecf4081
commit 003106a4d7
48 changed files with 626 additions and 752 deletions

View File

@@ -1,4 +1,4 @@
{
"shader": "mesh_raster.shader",
"albedo": "bricks.png"
"shader": "funny_basic_pbr",
"AlbedoTexture": "game/core/textures/bricks.png"
}

View File

@@ -0,0 +1,3 @@
{
"shader": "funny_error",
}

View File

@@ -1,7 +1,4 @@
[
{
"model": "cube.fmesh",
"material": "cube.fmat",
"physics": "cube.fmesh"
"mesh": "cube.fmesh",
"material": "cube.fmat"
}
]

View File

@@ -0,0 +1,9 @@
#include "macros.hlsl"
BRDF
{
float4 brdfMain()
{
return float4(1);
}
}

View File

@@ -15,4 +15,10 @@
#define PS namespace PixelShader_DO_NOT_USE
#endif
#ifdef BRDF_SHADER
#define BRDF using namespace BRDFShader; namespace BRDFShader
#else
#define BRDF namespace BRDFShader_DO_NOT_USE
#endif
#endif

View File

@@ -0,0 +1 @@
#include "macros.hlsl"

View File

@@ -0,0 +1,30 @@
#ifndef RAY_TRACE_H
#define RAY_TRACE_H
#ifdef SOFTWARE_RAY_TRACING
struct funnyAccelerationStructure
{
}
#else
struct funnyAccelerationStructure
{
RaytracingAccelerationStructure accel;
}
#endif
struct funnyHitObject
{
static funnyHitObject TraceRay<T>(
funnyAccelerationStructure AccelerationStructure,
uint RayFlags,
uint InstanceInclusionMask,
uint RayContributionToHitGroupIndex,
uint MultiplierForGeometryContributionToHitGroupIndex,
uint MissShaderIndex,
RayDesc Ray,
inout T Payload
);
};
#endif