mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-19 20:03:51 +01:00
feat: custom shaders
This commit is contained in:
1 parent
a7d8f08522
commit
4a6b5e3aa9
9 files changed
+176
-46
No files matched your search
@@ -17,9 +17,9 @@ import mutateTankopedia, {
|
||||
} from '../../../../../../stores/tankopedia';
|
||||
import { Loader } from '../../../../components/Loader';
|
||||
import { Controls } from '../Control';
|
||||
import { Lighting } from '../Lighting';
|
||||
import { RotationInputs } from '../RotationInputs';
|
||||
import { SceneProps } from '../SceneProps';
|
||||
import { TankArmor } from './components/TankArmor';
|
||||
import { TankModel } from './components/TankModel';
|
||||
|
||||
export function TankDisplay() {
|
||||
@@ -117,9 +117,11 @@ export function TankDisplay() {
|
||||
ref={canvas}
|
||||
camera={{ fov: 20 }}
|
||||
onPointerDown={handlePointerDown}
|
||||
gl={{ logarithmicDepthBuffer: true }}
|
||||
>
|
||||
<Controls />
|
||||
<SceneProps />
|
||||
<Lighting />
|
||||
|
||||
<Suspense
|
||||
fallback={
|
||||
@@ -132,7 +134,6 @@ export function TankDisplay() {
|
||||
}
|
||||
>
|
||||
<TankModel ref={hullContainer} />
|
||||
{mode === 'armor' && <TankArmor />}
|
||||
</Suspense>
|
||||
</Canvas>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user