visual changesw
This commit is contained in:
parent
a95e485cb7
commit
baac2b0513
3 changed files with 8 additions and 5 deletions
|
@ -39,7 +39,7 @@
|
||||||
gl_FragColor = vec4(b_position.xyz*0.1,1) * 0.2 + vec4(0.3,0.3,0.3,1) * 0.8;
|
gl_FragColor = vec4(b_position.xyz*0.1,1) * 0.2 + vec4(0.3,0.3,0.3,1) * 0.8;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing + dist_thing) / log(2.0) * 0.1;
|
float dist = (log(distance(b_position.xy,vec2(0.0))) - size_thing) / log(2.0) * 0.1;
|
||||||
gl_FragColor = vec4((mod(dist,0.1) - 0.1 + 0.1 * dist_thing) * 50.0 * vec3(1,1,1),1); // return redish-purple
|
gl_FragColor = vec4((mod(dist,0.1) - 0.1 + 0.1 * dist_thing) * 50.0 * vec3(1,1,1),1); // return redish-purple
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,10 @@ function renderThing() {
|
||||||
hud.textContent = `${Math.floor(nothingness * 100) / 100} nil; ${Math.floor((nGain + getBonus) * 60 * 100) / 100} nil/sec`
|
hud.textContent = `${Math.floor(nothingness * 100) / 100} nil; ${Math.floor((nGain + getBonus) * 60 * 100) / 100} nil/sec`
|
||||||
|
|
||||||
gl.uniform1f(sizeBuffer, -Math.log(nothingness));
|
gl.uniform1f(sizeBuffer, -Math.log(nothingness));
|
||||||
gl.uniform1f(distBuffer, 0.1 + 3 * nGain / (nGain + nothingness));
|
|
||||||
|
let am = (nGain + getBonus) / (nGain + getBonus + nothingness);
|
||||||
|
am = am ** (0.3);
|
||||||
|
gl.uniform1f(distBuffer, 0.1 + 1.2 * am);
|
||||||
gl.uniform1i(fgBuffer, false);
|
gl.uniform1i(fgBuffer, false);
|
||||||
|
|
||||||
var primitiveType = gl.TRIANGLES;
|
var primitiveType = gl.TRIANGLES;
|
||||||
|
@ -124,8 +127,8 @@ function renderThing() {
|
||||||
var count = 6;
|
var count = 6;
|
||||||
gl.drawArrays(primitiveType, offset, count);
|
gl.drawArrays(primitiveType, offset, count);
|
||||||
|
|
||||||
let sizes = (nGain + 1) / (nothingness + 1) * 1000000 / (cubePos.length+30);
|
let sizes = (nGain + 1) / (nothingness + 1) * 1000000 / (cubePos.length + 30);
|
||||||
sizes = Math.pow(sizes,0.3);
|
sizes = Math.pow(sizes, 0.3);
|
||||||
if (sizes > 10) sizes = 10;
|
if (sizes > 10) sizes = 10;
|
||||||
|
|
||||||
positions = MDN.createCubeData(sizes, sizes, sizes);
|
positions = MDN.createCubeData(sizes, sizes, sizes);
|
||||||
|
|
|
@ -8,7 +8,7 @@ exec.addCube = function () {
|
||||||
upgrades = [
|
upgrades = [
|
||||||
{
|
{
|
||||||
'name': 'Set',
|
'name': 'Set',
|
||||||
'price': 100,
|
'price': 30,
|
||||||
'exec': 'addCube',
|
'exec': 'addCube',
|
||||||
'desc': 'Clicks and waiting generate more nil'
|
'desc': 'Clicks and waiting generate more nil'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue