0.1.12 • Published 3 years ago

@jijevoid/glslimg v0.1.12

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

jijeimg

An Vue img-canvas component base GLSL.

Project install

npm i @jijevoid/glslimg

question

https://github.com/JIJEvoid/jijevoid-glslImg/issues/

code source

https://github.com/JIJEvoid/jijevoid-glslImg

who to use

   <template>
     <div id="app">
       <imgCanvas :img="img" :type="type" :height="height" :width="width"/>
     </div>
   </template>
   
   <script>
   import imgCanvas from './components/imgCanvas'
   
   export default {
     name: 'App',
     components: {
       imgCanvas
     },
     data(){
       return{
         img:require('./assets/juzi.jpg'),
         type:'light',
         height:'300px',
         width:'300px',
       }
     },
     mounted() {
     
     }
   }
   </script>

params

      img: {
        type: String,
        default: ''
      },
      height:{
        type: Number,
        default: 480,
      },
      width:{
        type: Number,
        default: 600,
      },
      type:{
        type: String,
        default: "imgShader",
      },
      customShader:{
        type: String,
        default: "",
      },
      loop:{
        type:Boolean,
        default:true,
      }

about shaderType

有如下几种type 1 固定shader

2 自定义shader

0.1.10

3 years ago

0.1.11

3 years ago

0.1.12

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago