-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add register-shader-chunks to exports v 0.12.4
- Loading branch information
1 parent
c73902b
commit 4dbfbc5
Showing
5 changed files
with
24 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './register-shader-chunks'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
import { ShaderChunk as ShaderChunkReadOnly } from "three"; | ||
import soft_fragment from "./soft_fragment.glsl"; | ||
import soft_pars_fragment from "./soft_pars_fragment.glsl"; | ||
import soft_pars_vertex from "./soft_pars_vertex.glsl"; | ||
import soft_vertex from "./soft_vertex.glsl"; | ||
import {ShaderChunk as ShaderChunkReadOnly} from 'three'; | ||
import soft_fragment from './soft_fragment.glsl'; | ||
import soft_pars_fragment from './soft_pars_fragment.glsl'; | ||
import soft_pars_vertex from './soft_pars_vertex.glsl'; | ||
import soft_vertex from './soft_vertex.glsl'; | ||
|
||
import tile_fragment from "./tile_fragment.glsl"; | ||
import tile_pars_fragment from "./tile_pars_fragment.glsl"; | ||
import tile_pars_vertex from "./tile_pars_vertex.glsl"; | ||
import tile_vertex from "./tile_vertex.glsl"; | ||
import tile_fragment from './tile_fragment.glsl'; | ||
import tile_pars_fragment from './tile_pars_fragment.glsl'; | ||
import tile_pars_vertex from './tile_pars_vertex.glsl'; | ||
import tile_vertex from './tile_vertex.glsl'; | ||
|
||
const ShaderChunk = ShaderChunkReadOnly as Record<string, string>; | ||
|
||
export default function registerShaderChunks() { | ||
ShaderChunk["tile_pars_vertex"] = tile_pars_vertex; | ||
ShaderChunk["tile_vertex"] = tile_vertex; | ||
export function registerShaderChunks() { | ||
ShaderChunk['tile_pars_vertex'] = tile_pars_vertex; | ||
ShaderChunk['tile_vertex'] = tile_vertex; | ||
|
||
ShaderChunk["tile_pars_fragment"] = tile_pars_fragment; | ||
ShaderChunk["tile_fragment"] = tile_fragment; | ||
ShaderChunk['tile_pars_fragment'] = tile_pars_fragment; | ||
ShaderChunk['tile_fragment'] = tile_fragment; | ||
|
||
ShaderChunk["soft_pars_vertex"] = soft_pars_vertex; | ||
ShaderChunk["soft_vertex"] = soft_vertex; | ||
ShaderChunk['soft_pars_vertex'] = soft_pars_vertex; | ||
ShaderChunk['soft_vertex'] = soft_vertex; | ||
|
||
ShaderChunk["soft_pars_fragment"] = soft_pars_fragment; | ||
ShaderChunk["soft_fragment"] = soft_fragment; | ||
ShaderChunk['soft_pars_fragment'] = soft_pars_fragment; | ||
ShaderChunk['soft_fragment'] = soft_fragment; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './chunks'; |