git-svn-id: svn://db.shs.com.ru/libs@605 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-10-07 15:51:43 +00:00
parent 8556e28984
commit c0c11def52
21 changed files with 748 additions and 612 deletions

View File

@@ -120,7 +120,7 @@ void main(void) {
pos.w = 1;
pos.xyz = view_dir * z;
pos.z = -pos.z;
//pos.z = -pos.z;
//pos.z = posz;
//pos.xyz += n * height;
@@ -142,8 +142,8 @@ void main(void) {
// calcLight(0, n, v, v2);
qgl_FragData[0] = vec4(max(vec3(0), li * dc + si * v2.rgb + v3.rgb + texelFetch(t_pp, tc, 0).rgb), v0.w);
//qgl_FragData[0].rgb = vec3(-z);
//qgl_FragData[0].rgb = li + vec3(texelFetch(t_pp, tc, 0).xyz);
//qgl_FragData[0].rgb = vec3(length(view_pos.xyz - qgl_Light[1].position.xyz)/3);
//qgl_FragData[0].rgb = vec3(view_pos.xyz);
//shd = shd - shp.w;
/*vec3 fp = pos.xyz;// * lpos.w;