mr Phenomenon zum Laden von .map Texturen:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | min version "3.4.7.5" max version "3.10.99" declare phenomenon color "Tex_HQ-Filtering" ( color texture "texture", scalar "eccmax", scalar "maxminor", scalar "disc_r", boolean "bilinear", boolean "mirror_x", boolean "mirror_y", vector "repeat", vector "offset", integer "space", struct "g" { scalar "gamma" default 1.0, #: min 0 softmax 5.0 scalar "gain" default 1.0, #: min 0 softmax 5.0 boolean "reverse" default off }, ) shader "coord" "mib_texture_vector" ( "select" 0, "selspace" 0, "vertex" 0, "project" 2 ) shader "remap" "mib_texture_remap" ( "input" = "coord", "repeat" = interface "repeat", "alt_x" = interface "mirror_x", "alt_y" = interface "mirror_y", "offset" = interface "offset" ) shader "tex" "mib_texture_filter_lookup" ( "tex" = interface "texture", "coord" = "remap", "remap" "remap", "eccmax" = interface "eccmax", "maxminor" = interface "maxminor", "bilinear" = interface "bilinear", "space" = interface "space", ) shader "gamma" "mip_gamma_gain" ( "input" = "tex", "gamma" = interface "g.gamma", "gain" = interface "g.gain", "reverse" = interface "g.reverse" ) root = "gamma" apply texture gui "gui_Tex_HQ-Filtering" { control "Global" "Global" ( "uiName" "Tex_HQ-Filtering", "category" "Texture" ) control "eccmax" "scalar" ( "uiName" "eccmax", "value" 20.0 ) control "maxminor" "scalar" ( "uiName" "maxminor", "value" 6.0 ) control "disc_r" "scalar" ( "uiName" "disc_r", "value" 0.3 ) control "repeat" "vector" ( "uiName" "repeat", "value" 1.0 1.0 1.0 ) control "space" "integer" ( "uiName" "space", "value" 1 ) control "g" "struct" ( "uiName" "Gamma Control" ) { control "gamma" "scalar" ( "uiName" "gamma", "value" 1.0 ) control "gain" "scalar" ( "uiName" "gain", "value" 1.0 ) control "reverse" "boolean" ( "uiName" "reverse", "value" off ) } } end declare |