Display: remove unused fragment-sorting function
This commit is contained in:
parent
18ebf3be2c
commit
e3120f7109
@ -71,18 +71,6 @@ struct taggedFrag {
|
||||
vec3 normal;
|
||||
};
|
||||
|
||||
taggedFrag[2] sort(taggedFrag a, taggedFrag b) {
|
||||
taggedFrag[2] result;
|
||||
if (a.pt.z > b.pt.z) {
|
||||
result[0] = a;
|
||||
result[1] = b;
|
||||
} else {
|
||||
result[0] = b;
|
||||
result[1] = a;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
taggedFrag sphere_shading(vecInv v, vec3 pt, vec3 base_color, float highlight, int id) {
|
||||
// the expression for normal needs to be checked. it's supposed to give the
|
||||
// negative gradient of the lorentz product between the impact point vector
|
||||
|
@ -70,18 +70,6 @@ struct taggedFrag {
|
||||
vec3 normal;
|
||||
};
|
||||
|
||||
taggedFrag[2] sort(taggedFrag a, taggedFrag b) {
|
||||
taggedFrag[2] result;
|
||||
if (a.pt.z > b.pt.z) {
|
||||
result[0] = a;
|
||||
result[1] = b;
|
||||
} else {
|
||||
result[0] = b;
|
||||
result[1] = a;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
taggedFrag sphere_shading(vecInv v, vec3 pt, vec3 base_color, int id) {
|
||||
// the expression for normal needs to be checked. it's supposed to give the
|
||||
// negative gradient of the lorentz product between the impact point vector
|
||||
|
Loading…
Reference in New Issue
Block a user