Commit bd91b46
committed
tr_shader: add the linearColorMap, linearSpecularMap and linearRgbGen keywords and raw variants
- lienarColorMap, linearSpecularMap and linearRgbGen expects
tr.worldLinearizeTexture. They are meant to be used in assets targeting
the linear pipeline only.
- rawColorMap, rawSpecularMap and rawRgbGen does the same, but there is no
colorspace meaning. They are meant to be used when porting legacy assets
that may be used in the naive pipeline to be rendered as they were before
for historical purposes, while being ported the hacky way for the linear
pipeline.1 parent 90441c4 commit bd91b46
File tree
4 files changed
+68
-9
lines changed- src/engine/renderer
4 files changed
+68
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | | - | |
| 1290 | + | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
982 | 987 | | |
983 | 988 | | |
984 | 989 | | |
| |||
998 | 1003 | | |
999 | 1004 | | |
1000 | 1005 | | |
| 1006 | + | |
| 1007 | + | |
1001 | 1008 | | |
1002 | 1009 | | |
1003 | 1010 | | |
| |||
1021 | 1028 | | |
1022 | 1029 | | |
1023 | 1030 | | |
| 1031 | + | |
1024 | 1032 | | |
1025 | 1033 | | |
1026 | 1034 | | |
| |||
1272 | 1280 | | |
1273 | 1281 | | |
1274 | 1282 | | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1275 | 1289 | | |
1276 | 1290 | | |
1277 | 1291 | | |
| |||
2397 | 2411 | | |
2398 | 2412 | | |
2399 | 2413 | | |
2400 | | - | |
2401 | | - | |
2402 | | - | |
2403 | 2414 | | |
2404 | 2415 | | |
2405 | 2416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1723 | 1723 | | |
1724 | 1724 | | |
1725 | 1725 | | |
1726 | | - | |
| 1726 | + | |
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
| |||
1733 | 1733 | | |
1734 | 1734 | | |
1735 | 1735 | | |
1736 | | - | |
| 1736 | + | |
1737 | 1737 | | |
1738 | 1738 | | |
1739 | 1739 | | |
| |||
1749 | 1749 | | |
1750 | 1750 | | |
1751 | 1751 | | |
1752 | | - | |
| 1752 | + | |
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
| |||
1782 | 1782 | | |
1783 | 1783 | | |
1784 | 1784 | | |
1785 | | - | |
| 1785 | + | |
1786 | 1786 | | |
1787 | 1787 | | |
1788 | 1788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1491 | 1491 | | |
1492 | 1492 | | |
1493 | 1493 | | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
1494 | 1497 | | |
1495 | 1498 | | |
1496 | 1499 | | |
1497 | 1500 | | |
| 1501 | + | |
| 1502 | + | |
1498 | 1503 | | |
1499 | 1504 | | |
1500 | 1505 | | |
1501 | | - | |
1502 | 1506 | | |
1503 | 1507 | | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
1504 | 1511 | | |
1505 | 1512 | | |
1506 | 1513 | | |
| |||
2095 | 2102 | | |
2096 | 2103 | | |
2097 | 2104 | | |
| 2105 | + | |
| 2106 | + | |
2098 | 2107 | | |
2099 | 2108 | | |
2100 | 2109 | | |
| |||
2641 | 2650 | | |
2642 | 2651 | | |
2643 | 2652 | | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
| 2683 | + | |
| 2684 | + | |
| 2685 | + | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
2644 | 2692 | | |
2645 | 2693 | | |
2646 | 2694 | | |
| |||
0 commit comments