better 3D effect (#1166)
This commit is contained in:
@@ -177,12 +177,12 @@ local function _drawField(P,showInvis)
|
|||||||
if P.falling==0 then-- Blocks only
|
if P.falling==0 then-- Blocks only
|
||||||
if ENV.upEdge then
|
if ENV.upEdge then
|
||||||
gc_setShader(shader_lighter)
|
gc_setShader(shader_lighter)
|
||||||
gc_translate(0,-4)
|
gc_translate(0,-6)
|
||||||
-- <drawRow>
|
-- <drawRow>
|
||||||
for j=start,min(start+21,#F) do _drawRow(texture,j,V[j],F[j]) end
|
for j=start,min(start+21,#F) do _drawRow(texture,j,V[j],F[j]) end
|
||||||
-- </drawRow>
|
-- </drawRow>
|
||||||
gc_setShader(shader_fieldSatur)
|
gc_setShader(shader_fieldSatur)
|
||||||
gc_translate(0,4)
|
gc_translate(0,6)
|
||||||
else
|
else
|
||||||
gc_setShader(shader_fieldSatur)
|
gc_setShader(shader_fieldSatur)
|
||||||
end
|
end
|
||||||
@@ -197,7 +197,7 @@ local function _drawField(P,showInvis)
|
|||||||
if ENV.upEdge then
|
if ENV.upEdge then
|
||||||
gc_push('transform')
|
gc_push('transform')
|
||||||
gc_setShader(shader_lighter)
|
gc_setShader(shader_lighter)
|
||||||
gc_translate(0,-4)
|
gc_translate(0,-6)
|
||||||
-- <drawRow>
|
-- <drawRow>
|
||||||
for j=start,min(start+21,#F) do
|
for j=start,min(start+21,#F) do
|
||||||
while j==P.clearingRow[h] do
|
while j==P.clearingRow[h] do
|
||||||
|
|||||||
Reference in New Issue
Block a user