mirror of
https://github.com/openglobus/openglobus.git
synced 2025-12-08 19:25:27 +00:00
889 wip.bbb
This commit is contained in:
parent
0407f65b46
commit
8ef817ed54
@ -5,11 +5,9 @@ uniform sampler2D texAtlas;
|
||||
varying vec4 v_rgba;
|
||||
varying vec4 v_texCoord;
|
||||
varying float v_texOffset;
|
||||
varying float repeat;
|
||||
|
||||
void main() {
|
||||
|
||||
float repeat = 10.0;
|
||||
|
||||
vec2 uv = v_texCoord.xy;
|
||||
float min = v_texCoord.z;
|
||||
float height = v_texCoord.w;
|
||||
|
||||
@ -13,6 +13,7 @@ attribute float a_texOffset;
|
||||
varying vec4 v_rgba;
|
||||
varying vec4 v_texCoord;
|
||||
varying float v_texOffset;
|
||||
varying float repeat;
|
||||
|
||||
uniform mat4 viewMatrix;
|
||||
uniform mat4 projectionMatrix;
|
||||
@ -37,6 +38,12 @@ void main() {
|
||||
float focalSize = 2.0 * dist * resolution;
|
||||
vec3 vert = right * a_thickness * focalSize * a_vertices.x;
|
||||
|
||||
// vec3 startPos = a_startPosHigh + a_startPosLow;
|
||||
// vec3 endPos = a_endPosHigh + a_endPosLow;
|
||||
// vec3 center = startPos + 0.5 * (endPos - startPos);
|
||||
float imageSize = 50.0;
|
||||
repeat = length(v) * 1.0/focalSize / imageSize;
|
||||
|
||||
vec3 highDiff;
|
||||
if(a_vertices.y == 0.0){
|
||||
highDiff = a_startPosHigh - eyePositionHigh;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user