Skip to content

Commit

Permalink
heroimageを軽く
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Mar 23, 2024
1 parent 36f8170 commit 4271a3f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions workspaces/app/src/pages/TopPage/internal/HeroImage.tsx
Expand Up @@ -2,7 +2,6 @@ import { useCallback, useEffect, useRef } from 'react';
import styled from 'styled-components';
import { Mesh, OrthographicCamera, PlaneGeometry, Scene, ShaderMaterial, TextureLoader, WebGLRenderer } from 'three';

import { IMAGE_SRC } from './ImageSrc';

const _Wrapper = styled.div`
aspect-ratio: 16 / 9;
Expand Down Expand Up @@ -47,7 +46,7 @@ export const HeroImage: React.FC = () => {

const textureLoader = new TextureLoader();

textureLoader.load(IMAGE_SRC, (texture) => {
textureLoader.load('/assets/output.jpg', (texture) => {
const geometry = new PlaneGeometry(2, 2);
const material = new ShaderMaterial({
fragmentShader: `uniform sampler2D tImage;
Expand Down
2 changes: 0 additions & 2 deletions workspaces/app/src/pages/TopPage/internal/ImageSrc.ts

This file was deleted.

Binary file added workspaces/client/assets/output.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4271a3f

Please sign in to comment.