base href
This commit is contained in:
@@ -157,7 +157,7 @@ Codex must:
|
||||
* add block to pipeline with `pipeline.addBlock( block )`
|
||||
|
||||
```
|
||||
import { Block } from "/framework/Block.js";
|
||||
import { Block } from "./framework/Block.js";
|
||||
|
||||
import { ExamplePass } from "../passes/ExamplePass.js";
|
||||
|
||||
@@ -184,9 +184,9 @@ A pipeline:
|
||||
* may override `execute()` to chain passes logically
|
||||
|
||||
```
|
||||
import { RenderPipeline } from "/framework/RenderPipeline.js";
|
||||
import { RenderPipeline } from "./framework/RenderPipeline.js";
|
||||
|
||||
import { Block } from "/framework/Block.js";
|
||||
import { Block } from "./framework/Block.js";
|
||||
|
||||
import { ExamplePass } from "../passes/ExamplePass.js";
|
||||
|
||||
@@ -274,7 +274,7 @@ Codex must:
|
||||
The entrypoint must follow this shape whenever Codex creates a new WebGPU project:
|
||||
|
||||
```
|
||||
import { Engine } from "/framework/Engine.js";
|
||||
import { Engine } from "./framework/Engine.js";
|
||||
|
||||
import { ExamplePipeline } from "./pipelines/ExamplePipeline.js";
|
||||
|
||||
@@ -384,4 +384,3 @@ Never omit bindBuffers if pass needs it.
|
||||
* RenderPass
|
||||
* Shader
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { RenderPass } from "/framework/RenderPass.js";
|
||||
import { RenderPass } from "./framework/RenderPass.js";
|
||||
|
||||
import Shader from "/framework/WebGpu.js";
|
||||
import Shader from "./framework/WebGpu.js";
|
||||
|
||||
|
||||
export class ColFFTPass extends RenderPass {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { RenderPass } from "/framework/RenderPass.js";
|
||||
import { RenderPass } from "./framework/RenderPass.js";
|
||||
|
||||
import Shader from "/framework/WebGpu.js";
|
||||
import Shader from "./framework/WebGpu.js";
|
||||
|
||||
import Matrix4 from "/framework/Matrix4.js";
|
||||
import Matrix4 from "./framework/Matrix4.js";
|
||||
|
||||
|
||||
export class OceanRenderPass extends RenderPass {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { RenderPass } from "/framework/RenderPass.js";
|
||||
import { RenderPass } from "./framework/RenderPass.js";
|
||||
|
||||
import Shader from "/framework/WebGpu.js";
|
||||
import Shader from "./framework/WebGpu.js";
|
||||
|
||||
import Matrix4 from "/framework/Matrix4.js";
|
||||
import Matrix4 from "./framework/Matrix4.js";
|
||||
|
||||
|
||||
export class OceanSolidRenderPass extends RenderPass {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { RenderPass } from "/framework/RenderPass.js";
|
||||
import { RenderPass } from "./framework/RenderPass.js";
|
||||
|
||||
import Shader from "/framework/WebGpu.js";
|
||||
import Shader from "./framework/WebGpu.js";
|
||||
|
||||
|
||||
export class RowFFTPass extends RenderPass {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { RenderPass } from "/framework/RenderPass.js";
|
||||
import { RenderPass } from "./framework/RenderPass.js";
|
||||
|
||||
import Shader from "/framework/WebGpu.js";
|
||||
import Shader from "./framework/WebGpu.js";
|
||||
|
||||
import Matrix4 from "/framework/Matrix4.js";
|
||||
import Matrix4 from "./framework/Matrix4.js";
|
||||
|
||||
|
||||
export class SkySpherePass extends RenderPass {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { RenderPass } from "/framework/RenderPass.js";
|
||||
import { RenderPass } from "./framework/RenderPass.js";
|
||||
|
||||
import Shader from "/framework/WebGpu.js";
|
||||
import Shader from "./framework/WebGpu.js";
|
||||
|
||||
|
||||
export class SpectrumPass extends RenderPass {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { RenderPipeline } from "/framework/RenderPipeline.js";
|
||||
import { RenderPipeline } from "./framework/RenderPipeline.js";
|
||||
|
||||
import { Block } from "/framework/Block.js";
|
||||
import { Block } from "./framework/Block.js";
|
||||
|
||||
import Camera from "/framework/Camera.js";
|
||||
import Camera from "./framework/Camera.js";
|
||||
|
||||
import EventManager from "/framework/eventManager.js";
|
||||
import EventManager from "./framework/eventManager.js";
|
||||
|
||||
import { SpectrumPass } from "../passes/SpectrumPass.js";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user