precision mediump float;precision mediump int;
varying vec4 vColor;
void main(void) { gl_FragColor = vColor;}precision mediump float;precision mediump int;
attribute vec3 aVertexPosition;attribute vec4 aVertexColor;
uniform mat4 uModelViewMatrix;uniform mat4 uProjectionMatrix;uniform float uPointSize;
//for undetermined point attenuation feature// uniform vec3 uAttenuation;
uniform vec3 uBias;uniform vec3 uScale;uniform int uCEMode;
varying vec4 vColor;
void main(void) { if(uCEMode == 1) { //use bias and scale unifroms for min max color enhancement vColor = (aVertexColor - vec4(uBias, 0.0)) * vec4(uScale, 1.0); } else { vColor = aVertexColor; }
vec4 ecPos4 = uModelViewMatrix * vec4(aVertexPosition, 1.0);
//make points larger as they get further away from the viewer //helps to make the cloud look less sparse when far enough to only see //the first level or two of the octree gl_PointSize = length(ecPos4) / uPointSize * 3.0;
//for undetermined point attenuation feature // float attn = uAttenuation[0] + (uAttenuation[1] * dist) + (uAttenuation[2] * dist * dist); // gl_PointSize = (attn > 0.0 && attn < uPointSize) ? uPointSize * sqrt(1.0/attn) : uPointSize;
gl_Position = uProjectionMatrix * ecPos4;}| Platform: | Win32 | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Browser User Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36 | ||||||||||||||||||||||||||||||||||||||||
| Context Name: | webgl | ||||||||||||||||||||||||||||||||||||||||
| GL Version: | WebGL 1.0 (OpenGL ES 2.0 Chromium) | ||||||||||||||||||||||||||||||||||||||||
| Shading Language Version: | WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) | ||||||||||||||||||||||||||||||||||||||||
| Vendor: | WebKit | ||||||||||||||||||||||||||||||||||||||||
| Renderer: | WebKit WebGL | ||||||||||||||||||||||||||||||||||||||||
| Unmasked Vendor: | Google Inc. | ||||||||||||||||||||||||||||||||||||||||
| Unmasked Renderer: | ANGLE (Intel(R) HD Graphics 4000 Direct3D11 vs_5_0 ps_5_0) | ||||||||||||||||||||||||||||||||||||||||
| Antialiasing: | Available | ||||||||||||||||||||||||||||||||||||||||
| ANGLE: | Yes, D3D11 | ||||||||||||||||||||||||||||||||||||||||
| Major Performance Caveat: | No | ||||||||||||||||||||||||||||||||||||||||
Vertex Shader
Transform FeedbackComing in WebGL 2 Rasterizer
Fragment Shader
Framebuffer
Textures
Uniform BuffersComing in WebGL 2 | |||||||||||||||||||||||||||||||||||||||||
| Supported Extensions: | |||||||||||||||||||||||||||||||||||||||||
| ANGLE_instanced_arrays | |||||||||||||||||||||||||||||||||||||||||
| EXT_blend_minmax | |||||||||||||||||||||||||||||||||||||||||
| EXT_frag_depth | |||||||||||||||||||||||||||||||||||||||||
| EXT_shader_texture_lod | |||||||||||||||||||||||||||||||||||||||||
| EXT_sRGB | |||||||||||||||||||||||||||||||||||||||||
| EXT_texture_filter_anisotropic | |||||||||||||||||||||||||||||||||||||||||
| WEBKIT_EXT_texture_filter_anisotropic | |||||||||||||||||||||||||||||||||||||||||
| OES_element_index_uint | |||||||||||||||||||||||||||||||||||||||||
| OES_standard_derivatives | |||||||||||||||||||||||||||||||||||||||||
| OES_texture_float | |||||||||||||||||||||||||||||||||||||||||
| OES_texture_float_linear | |||||||||||||||||||||||||||||||||||||||||
| OES_texture_half_float | |||||||||||||||||||||||||||||||||||||||||
| OES_texture_half_float_linear | |||||||||||||||||||||||||||||||||||||||||
| OES_vertex_array_object | |||||||||||||||||||||||||||||||||||||||||
| WEBGL_compressed_texture_s3tc | |||||||||||||||||||||||||||||||||||||||||
| WEBKIT_WEBGL_compressed_texture_s3tc | |||||||||||||||||||||||||||||||||||||||||
| WEBGL_debug_renderer_info | |||||||||||||||||||||||||||||||||||||||||
| WEBGL_debug_shaders | |||||||||||||||||||||||||||||||||||||||||
| WEBGL_depth_texture | |||||||||||||||||||||||||||||||||||||||||
| WEBKIT_WEBGL_depth_texture | |||||||||||||||||||||||||||||||||||||||||
| WEBGL_draw_buffers | |||||||||||||||||||||||||||||||||||||||||
| WEBGL_lose_context | |||||||||||||||||||||||||||||||||||||||||
| WEBKIT_WEBGL_lose_context | |||||||||||||||||||||||||||||||||||||||||
--
You received this message because you are subscribed to the Google Groups "WebGL Dev List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webgl-dev-lis...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.