889 wip.bbb

This commit is contained in:
Michael Gevlich 2025-11-06 18:39:35 +04:00
parent 0407f65b46
commit 8ef817ed54
2 changed files with 8 additions and 3 deletions

View File

@ -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;

View File

@ -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;