mirror of
https://github.com/jlengrand/elm-webgl-playground.git
synced 2026-03-10 08:11:18 +00:00
Move the texture
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module Main exposing (..)
|
||||
module Animation2D exposing (main)
|
||||
|
||||
import Mouse
|
||||
import WebGL exposing (Mesh, Shader)
|
||||
@@ -52,7 +52,7 @@ init =
|
||||
, elapsed = 0
|
||||
, frame = 0
|
||||
}
|
||||
! [ Texture.load "/texture/delivery-person.png"
|
||||
! [ Texture.load "animation2d.png"
|
||||
|> Task.attempt
|
||||
(\result ->
|
||||
case result of
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module Main exposing (main)
|
||||
module CSS3D exposing (main)
|
||||
|
||||
import Html exposing (Html, div, text)
|
||||
import Html.Attributes exposing (height, style, width)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module Main exposing (..)
|
||||
module Copter3D exposing (main)
|
||||
|
||||
import WebGL exposing (Mesh, Shader)
|
||||
import Math.Vector3 exposing (Vec3, vec3, add, scale, normalize, length, dot)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module Main exposing (..)
|
||||
module Planet3D exposing (main)
|
||||
|
||||
import WebGL exposing (Mesh, Shader)
|
||||
import Math.Vector3 exposing (Vec3, vec3, add, scale, normalize, length, dot)
|
||||
|
||||
|
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 232 KiB |
@@ -10,8 +10,8 @@ for i in animation2d copter3d css3d planet3d shadertoy tangram; do
|
||||
elm make $i.elm --yes --output ../gh-pages/$i.html
|
||||
done
|
||||
|
||||
# copy the textures
|
||||
cp -R texture ../gh-pages/
|
||||
# copy the texture
|
||||
cp animation2d.png ../gh-pages/
|
||||
|
||||
# configure domain
|
||||
cd ../gh-pages
|
||||
|
||||
Reference in New Issue
Block a user