Added missing usages in buffers used a source of data copy. Fixed problems with types in starsphere.frag shader. Updated starsphere.frag.spv file.

This commit is contained in:
plapins 2016-09-21 14:53:41 +02:00
parent b54e424d1b
commit e57722d7f1
3 changed files with 5 additions and 5 deletions

View file

@ -14,11 +14,11 @@ layout (location = 0) out vec4 outFragColor;
float hash33(vec3 p3)
{
p3 = fract(p3 * HASHSCALE3);
p3 += dot(p3, p3.yxz+19.19);
return fract(vec3((p3.x + p3.y)*p3.z + (p3.x+p3.z)*p3.y + (p3.y+p3.z)*p3.x));
p3 += dot(p3, p3.yxz+vec3(19.19));
return fract((p3.x + p3.y)*p3.z + (p3.x+p3.z)*p3.y + (p3.y+p3.z)*p3.x);
}
float starField(vec3 pos)
vec3 starField(vec3 pos)
{
vec3 color = vec3(0.0);
float threshhold = (1.0 - STARFREQUENCY);