Replace XML codeblock spaces with tabs
This commit is contained in:
@ -42,13 +42,13 @@
|
||||
Produce an overlay effect with the following formula:
|
||||
[codeblock]
|
||||
for (int i = 0; i < 3; i++) {
|
||||
float base = a[i];
|
||||
float blend = b[i];
|
||||
if (base < 0.5) {
|
||||
result[i] = 2.0 * base * blend;
|
||||
} else {
|
||||
result[i] = 1.0 - 2.0 * (1.0 - blend) * (1.0 - base);
|
||||
}
|
||||
float base = a[i];
|
||||
float blend = b[i];
|
||||
if (base < 0.5) {
|
||||
result[i] = 2.0 * base * blend;
|
||||
} else {
|
||||
result[i] = 1.0 - 2.0 * (1.0 - blend) * (1.0 - base);
|
||||
}
|
||||
}
|
||||
[/codeblock]
|
||||
</constant>
|
||||
@ -68,13 +68,13 @@
|
||||
Produce a soft light effect with the following formula:
|
||||
[codeblock]
|
||||
for (int i = 0; i < 3; i++) {
|
||||
float base = a[i];
|
||||
float blend = b[i];
|
||||
if (base < 0.5) {
|
||||
result[i] = base * (blend + 0.5);
|
||||
} else {
|
||||
result[i] = 1.0 - (1.0 - base) * (1.0 - (blend - 0.5));
|
||||
}
|
||||
float base = a[i];
|
||||
float blend = b[i];
|
||||
if (base < 0.5) {
|
||||
result[i] = base * (blend + 0.5);
|
||||
} else {
|
||||
result[i] = 1.0 - (1.0 - base) * (1.0 - (blend - 0.5));
|
||||
}
|
||||
}
|
||||
[/codeblock]
|
||||
</constant>
|
||||
@ -82,13 +82,13 @@
|
||||
Produce a hard light effect with the following formula:
|
||||
[codeblock]
|
||||
for (int i = 0; i < 3; i++) {
|
||||
float base = a[i];
|
||||
float blend = b[i];
|
||||
if (base < 0.5) {
|
||||
result[i] = base * (2.0 * blend);
|
||||
} else {
|
||||
result[i] = 1.0 - (1.0 - base) * (1.0 - 2.0 * (blend - 0.5));
|
||||
}
|
||||
float base = a[i];
|
||||
float blend = b[i];
|
||||
if (base < 0.5) {
|
||||
result[i] = base * (2.0 * blend);
|
||||
} else {
|
||||
result[i] = 1.0 - (1.0 - base) * (1.0 - 2.0 * (blend - 0.5));
|
||||
}
|
||||
}
|
||||
[/codeblock]
|
||||
</constant>
|
||||
|
||||
Reference in New Issue
Block a user