alpha testing enabled
This commit is contained in:
parent
6d9f6a3e28
commit
3c53eb2f31
|
@ -153,12 +153,12 @@
|
||||||
"IncludedFiles": [
|
"IncludedFiles": [
|
||||||
{"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing tex.png","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing tex.png","resourceType":"GMIncludedFile",},
|
||||||
{"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing.dat","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles","resourceVersion":"1.0","name":"shrine thing.dat","resourceType":"GMIncludedFile",},
|
||||||
{"CopyToMask":-1,"filePath":"datafiles/Map 1","resourceVersion":"1.0","name":"Map 1.dat","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles/map1","resourceVersion":"1.0","name":"map1.dat","resourceType":"GMIncludedFile",},
|
||||||
{"CopyToMask":-1,"filePath":"datafiles/Map 1","resourceVersion":"1.0","name":"Map 1.size","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles/map1","resourceVersion":"1.0","name":"map1.size","resourceType":"GMIncludedFile",},
|
||||||
{"CopyToMask":-1,"filePath":"datafiles/Map 1","resourceVersion":"1.0","name":"MapAtlas.png","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles/map1","resourceVersion":"1.0","name":"mapatlas.png","resourceType":"GMIncludedFile",},
|
||||||
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBA Test.dat","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles/testmap","resourceVersion":"1.0","name":"gbatest.dat","resourceType":"GMIncludedFile",},
|
||||||
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBA Test.size","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles/testmap","resourceVersion":"1.0","name":"gbatest.size","resourceType":"GMIncludedFile",},
|
||||||
{"CopyToMask":-1,"filePath":"datafiles/Test Map","resourceVersion":"1.0","name":"GBATestAtlas.png","resourceType":"GMIncludedFile",},
|
{"CopyToMask":-1,"filePath":"datafiles/testmap","resourceVersion":"1.0","name":"gbatestatlas.png","resourceType":"GMIncludedFile",},
|
||||||
],
|
],
|
||||||
"MetaData": {
|
"MetaData": {
|
||||||
"IDEVersion": "2.3.3.574",
|
"IDEVersion": "2.3.3.574",
|
||||||
|
|
|
@ -36,11 +36,14 @@ function setCam(){
|
||||||
global.turn = ARMY.US;
|
global.turn = ARMY.US;
|
||||||
|
|
||||||
function drawModels(){
|
function drawModels(){
|
||||||
gpu_set_cullmode(cull_counterclockwise);
|
//gpu_set_cullmode(cull_counterclockwise);
|
||||||
gpu_set_ztestenable(true);
|
gpu_set_ztestenable(true);
|
||||||
|
gpu_set_alphatestenable(true);
|
||||||
|
gpu_set_alphatestref(128);
|
||||||
for(var i = 0; i < array_length(models);i++){
|
for(var i = 0; i < array_length(models);i++){
|
||||||
models[i].draw();
|
models[i].draw();
|
||||||
}
|
}
|
||||||
|
gpu_set_alphatestenable(false);
|
||||||
gpu_set_cullmode(cull_noculling);
|
gpu_set_cullmode(cull_noculling);
|
||||||
gpu_set_ztestenable(false);
|
gpu_set_ztestenable(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue