Update shader load
This commit is contained in:
parent
a8961dcb4e
commit
d4680b5e1a
|
@ -37,10 +37,7 @@ class RenderPathRaytracer {
|
|||
public static function init(_path:RenderPath) {
|
||||
path = _path;
|
||||
|
||||
kha.Assets.loadBlobFromPath("pt_raygeneration.o", function(rayShader:kha.Blob) {
|
||||
kha.Assets.loadBlobFromPath("pt_closesthit.o", function(hitShader:kha.Blob) {
|
||||
kha.Assets.loadBlobFromPath("pt_miss.o", function(missShader:kha.Blob) {
|
||||
|
||||
kha.Assets.loadBlobFromPath("raytrace.cso", function(rayTraceShader:kha.Blob) {
|
||||
ready = true;
|
||||
|
||||
// Command list
|
||||
|
@ -53,7 +50,7 @@ class RenderPathRaytracer {
|
|||
|
||||
// Pipeline
|
||||
constantBuffer = new ConstantBuffer(21 * 4);
|
||||
pipeline = new RayTracePipeline(commandList, rayShader, hitShader, missShader, constantBuffer);
|
||||
pipeline = new RayTracePipeline(commandList, rayTraceShader, constantBuffer);
|
||||
|
||||
// Acceleration structure
|
||||
var structure = new VertexStructure();
|
||||
|
@ -89,8 +86,6 @@ class RenderPathRaytracer {
|
|||
// Output
|
||||
target = new RayTraceTarget(iron.App.w(), iron.App.h());
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public static function commands() {
|
||||
|
|
Loading…
Reference in a new issue