From fb34401ab3c1dafa977169e7c8c9b12ea2804299 Mon Sep 17 00:00:00 2001 From: Wolfger Schramm Date: Thu, 16 Nov 2023 14:22:26 +0100 Subject: [PATCH] move to sprites/ folder --- .../src/sprites/AnimatedSprites/AnimatedSpritesMaterial.ts | 2 +- .../src/{texture => sprites}/CustomChunksShaderMaterial.ts | 0 .../src/sprites/TexturedSprites/TexturedSpritesMaterial.ts | 2 +- packages/twopoint5d/src/sprites/public-api.ts | 1 + packages/twopoint5d/src/texture/public-api.ts | 1 - 5 files changed, 3 insertions(+), 3 deletions(-) rename packages/twopoint5d/src/{texture => sprites}/CustomChunksShaderMaterial.ts (100%) diff --git a/packages/twopoint5d/src/sprites/AnimatedSprites/AnimatedSpritesMaterial.ts b/packages/twopoint5d/src/sprites/AnimatedSprites/AnimatedSpritesMaterial.ts index 498b7a9f..34ff1a34 100644 --- a/packages/twopoint5d/src/sprites/AnimatedSprites/AnimatedSpritesMaterial.ts +++ b/packages/twopoint5d/src/sprites/AnimatedSprites/AnimatedSpritesMaterial.ts @@ -1,6 +1,6 @@ import {DoubleSide, Texture} from 'three'; -import {CustomChunksShaderMaterial, type CustomChunksShaderMaterialParameters} from '../../texture/CustomChunksShaderMaterial.js'; import {unpick} from '../../utils/unpick.js'; +import {CustomChunksShaderMaterial, type CustomChunksShaderMaterialParameters} from '../CustomChunksShaderMaterial.js'; import ShaderLib from '../ShaderLib.js'; const vertexShader = ` diff --git a/packages/twopoint5d/src/texture/CustomChunksShaderMaterial.ts b/packages/twopoint5d/src/sprites/CustomChunksShaderMaterial.ts similarity index 100% rename from packages/twopoint5d/src/texture/CustomChunksShaderMaterial.ts rename to packages/twopoint5d/src/sprites/CustomChunksShaderMaterial.ts diff --git a/packages/twopoint5d/src/sprites/TexturedSprites/TexturedSpritesMaterial.ts b/packages/twopoint5d/src/sprites/TexturedSprites/TexturedSpritesMaterial.ts index d8411fe9..84ced6a6 100644 --- a/packages/twopoint5d/src/sprites/TexturedSprites/TexturedSpritesMaterial.ts +++ b/packages/twopoint5d/src/sprites/TexturedSprites/TexturedSpritesMaterial.ts @@ -1,6 +1,6 @@ import {DoubleSide, Texture} from 'three'; -import {CustomChunksShaderMaterial, type CustomChunksShaderMaterialParameters} from '../../texture/CustomChunksShaderMaterial.js'; import {unpick} from '../../utils/unpick.js'; +import {CustomChunksShaderMaterial, type CustomChunksShaderMaterialParameters} from '../CustomChunksShaderMaterial.js'; import ShaderLib from '../ShaderLib.js'; const vertexShader = ` diff --git a/packages/twopoint5d/src/sprites/public-api.ts b/packages/twopoint5d/src/sprites/public-api.ts index 2cdfbedf..14e0b7aa 100644 --- a/packages/twopoint5d/src/sprites/public-api.ts +++ b/packages/twopoint5d/src/sprites/public-api.ts @@ -3,6 +3,7 @@ export * from './AnimatedSprites/AnimatedSprites.js'; export * from './AnimatedSprites/AnimatedSpritesGeometry.js'; export * from './AnimatedSprites/AnimatedSpritesMaterial.js'; export * from './BaseSprite.js'; +export * from './CustomChunksShaderMaterial.js'; export * from './ShaderTool.js'; export * from './TexturedSprites/TexturedSprite.js'; export * from './TexturedSprites/TexturedSprites.js'; diff --git a/packages/twopoint5d/src/texture/public-api.ts b/packages/twopoint5d/src/texture/public-api.ts index 9ebcd09b..54c6b739 100644 --- a/packages/twopoint5d/src/texture/public-api.ts +++ b/packages/twopoint5d/src/texture/public-api.ts @@ -1,4 +1,3 @@ -export * from './CustomChunksShaderMaterial.js'; export * from './FrameBasedAnimations.js'; export * from './PowerOf2ImageLoader.js'; export * from './TextureAtlas.js';