prefix2.es6 434 字节
Newer Older
Y
yangmingming 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/* eslint-disable */
/**
 * @file 预设条件, webgl 2.0版本
 * @author yangmingming
 */
export default `#version 300 es

#ifdef GL_FRAGMENT_PRECISION_HIGH
    precision highp float;
    precision highp int;
#else
    precision mediump float;
    precision mediump int;
#endif

// 顶点shader透传的材质坐标
    in vec2 vCoord;
    out vec4 outColor;
    void setOutput(float result) {
        outColor.r = result;
    }
`;