# WebGL **Repository Path**: someu/WebGL ## Basic Information - **Project Name**: WebGL - **Description**: 基于WebGL的三维场景构建 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # WebGL ### 使用方式 ```shell npm install npm run build npm run dev ``` **输出目录为`./dist/`** ### 目录结构 ```shell app ├── index.js - 主 ├── lib --- 核心库文件 │   ├── createBuffer.js --- 创建缓冲 │   ├── creatGLContext.js --- 创建WebGL上下文 │   ├── loadObj.js --- 加载Obj模型文件 │   ├── loadShader.js --- 加载着色器 │   ├── MatrixState.js --- 变换矩阵维护类 │   ├── ObjObject.js --- Obj模型类 │   ├── setupShader.js --- 设置着色器 │   └── utils │   └── ajax.js --- ajax请求工具 ├── template --- html模板 │   └── index.html └── test --- 测试文件夹 ├── index.js ├── testAjax.js ├── testLoadObj.js └── testLoadShader.js ```