在UltraEditor ogre material 和 vs_3_0语法高亮显示

找到 wordfile.uew

在文件尾加入以下内容,然后把你的vs_3_0的程序都用.vs3扩展名,用UE打开就能(部分)高亮显示了

( 有些关键词未搜集完整, 先用着吧 )


/L15"Vertex Shader 3.0" Line Comment = ; Line Comment Alt = // File Extensions = VSH3 vs3
/Delimiters = [] + .,;-

/C1"Version Instructions"
def
vs
dcl_position
dcl_color
dcl_texcoord
dcl_normal

dcl_2d
dcl_cube
dcl_volume

/C2"General Instructions"
add abs
break break_gt break_lt break_eq break_ge break_le break_ne
call callnz crs
dp3 dp4 dst
expp
if_gt if_lt if_eq if_ge if_le if_ne if else endif endrep endloop exp
lit logp
mad max min mov mul
nop nrm
pow
rcp rsq rep ret
sincos
sge slt sub setp_gt setp_lt setp_eq setp_ge setp_le setp_ne
texldl

/C3"Macros"
exp
frc
log label lit lrp loop logp
m3x2 m3x3 m3x4 m4x3 m4x4


/C4"Registers"
a0
aL
b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15
p0
i0 i1 i2 i3 i4 i5 i6 i7 i8 i9 i10 i11 i12 i13 i14 i15
c
c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 c16 c17 c18 c19 c20 c21 c22 c23 c24 c25 c26 c27 c28 c29 c30 c31 c32 c33 c34 c35 c36 c37 c38 c39
c40 c41 c42 c43 c44 c45 c46 c47 c48 c49 c50 c51 c52 c53 c54 c55 c56 c57 c58 c59 c60 c61 c62 c63 c64 c65 c66 c67 c68 c69 c70 c71 c72 c73 c74 c75 c76 c77 c78 c79
c80 c81 c82 c83 c84 c85 c86 c87 c88 c89 c90 c91 c92 c93 c94 c95 c96
r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31
s0 s1 s2 s3
v0 v1 v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12 v13 v14 v15
o0 o1 o2 o3 o4 o5 o6 o7 o8 o9 o10 o11

/C5"Modifiers"
w ww www wwww
x xx xxx xxxx
xy xyz xyzw
y yy yyy yyyy yz yzw
z zw zyxw zz zzz zzzz


/L16"Ogre material script" Line Comment = ; Line Comment Alt = // File Extensions = material
/Delimiters = [] + .,;-

/C1"Key words"
default_params
fragment_program
fragment_program_ref
glsl
GLSL
hlsl
HLSL
material
pass
technique
texture_unit
vertex_program
vertex_program_ref
source
syntax


/C2"Property names"
alpha_op_ex
alpha_rejection
alpha_to_coverage
ambient
anim_texture
binding_type
colour_op
colour_op_ex
colour_op_ex
colour_op_multipass_fallback
colour_write
cubic_texture
cull_hardware
cull_software
depth_bias
depth_check
depth_func
depth_write
diffuse
emissive
env_map
filtering
fog_override
gpu_device_rule
gpu_vendor_rule
illumination_stage
iteration
iteration_depth_bias
light_clip_planes
light_scissor
lighting
lod_distances
lod_index
max_anisotropy
max_lights
mipmap_bias
normalise_normals
param_indexed
param_indexed_auto
param_named
param_named_auto
point_size
point_size_attenuation
point_size_max
point_size_min
point_sprites
polygon_mode
polygon_mode_overrideable
rotate
rotate_anim
scale
scene_blend
scheme
scroll
scroll_anim
separate_scene_blend
shading
shadow_caster_material
shadow_receiver_material
specular
start_light
tex_address_mode
tex_border_colour
tex_coord_set
texture
texture_alias
transform
wave_xform


/C3"Property values"
1d
2d
3d
3dlabs
PF_A1R5G5B5
PF_A2B10G10R10
PF_A2R10G10B10
PF_A4L4
PF_A4R4G4B4
PF_A8
PF_A8B8G8R8
PF_A8R8G8B8
PF_B5G6R5
PF_B8G8R8
PF_B8G8R8A8
PF_BYTE_LA
PF_FLOAT16_R
PF_FLOAT16_RGB
PF_FLOAT16_RGBA
PF_FLOAT32_R
PF_FLOAT32_RGB
PF_FLOAT32_RGBA
PF_L16
PF_L8
PF_R3G3B2
PF_R5G6B5
PF_R8G8B8
PF_R8G8B8A8
PF_SHORT_RGBA
PF_X8B8G8R8
PF_X8R8G8B8
add
add
add_signed
add_smooth
alpha_blend
always_fail
always_pass
ambient_light_colour
amplitude
animation_parametric
anisotropic
ati
back
base
bilinear
blend_current_alpha
blend_diffuse_alpha
blend_diffuse_colour
blend_manual
blend_texture_alpha
border
camera_position
camera_position_object_space
clamp
colour_blend
combinedUVW
costime_0_1
costime_0_2pi
costime_0_x
cubic
cubic_normal
cubic_reflection
custom
derived_ambient_light_colour
derived_light_diffuse_colour
derived_light_diffuse_colour_array
derived_light_specular_colour
derived_light_specular_colour_array
derived_scene_colour
dest_alpha
dest_colour
dotproduct
equal
exclude
exp
exp2
far_clip_distance
flat
fog_colour
fog_params
fov
fps
frame_time
frequency
front
gouraud
greater
greater_equal
include
intel
inverse_projection_matrix
inverse_sawtooth
inverse_texture_size
inverse_transpose_projection_matrix
inverse_transpose_view_matrix
inverse_transpose_viewproj_matrix
inverse_transpose_world_matrix
inverse_transpose_worldview_matrix
inverse_transpose_worldviewproj_matrix
inverse_view_matrix
inverse_viewport_height
inverse_viewport_width
inverse_viewproj_matrix
inverse_world_matrix
inverse_worldview_matrix
inverse_worldviewproj_matrix
iteration
less
less_equal
light_attenuation
light_attenuation_array
light_casts_shadows
light_count
light_diffuse_colour
light_diffuse_colour_array
light_diffuse_colour_power_scaled
light_diffuse_colour_power_scaled_array
light_direction
light_direction_array
light_direction_object_space
light_direction_object_space_array
light_direction_view_space
light_direction_view_space_array
light_distance_object_space
light_distance_object_space_array
light_number
light_position
light_position_array
light_position_object_space
light_position_object_space_array
light_position_view_space
light_position_view_space_array
light_power
light_power_array
light_specular_colour
light_specular_colour_array
light_specular_colour_power_scaled
light_specular_colour_power_scaled_array
linear
lod_camera_position
lod_camera_position_object_space
matrox
mirror
modulate
modulate
modulate_x2
modulate_x4
named
near_clip_distance
none
none
not_equal
nvidia
off
on
once
once_per_light
one
one_minus_dest_alpha
one_minus_dest_colour
one_minus_src_alpha
one_minus_src_colour
packed_texture_size
pass_iteration_number
pass_number
phase
phong
planar
point
points
projection_matrix
render_target_flipping
rotate
s3
sawtooth
scale_x
scale_y
scene_depth_range
scroll_x
scroll_y
separateUV
shadow
shadow_colour
shadow_extrusion_distance
shadow_scene_depth_range
sine
sintime_0_1
sintime_0_2pi
sintime_0_x
solid
source1
source2
spherical
spotlight_params
spotlight_params_array
spotlight_viewproj_matrix
spotlight_worldviewproj_matrix
square
src_alpha
src_colour
src_current
src_diffuse
src_manual
src_specular
src_texture
subtract
surface_ambient_colour
surface_diffuse_colour
surface_emissive_colour
surface_shininess
surface_specular_colour
tantime_0_1
tantime_0_2pi
tantime_0_x
texel_offsets
texture_matrix
texture_size
texture_viewproj_matrix
texture_viewproj_matrix_array
texture_worldviewproj_matrix
texture_worldviewproj_matrix_array
time
time_0_1
time_0_1_packed
time_0_2pi
time_0_2pi_packed
time_0_x
time_0_x_packed
transpose_projection_matrix
transpose_view_matrix
transpose_viewproj_matrix
transpose_world_matrix
transpose_worldview_matrix
transpose_worldviewproj_matrix
triangle
trilinear
vertexcolour
view_direction
view_matrix
view_side_vector
view_up_vector
viewport_height
viewport_size
viewport_width
viewproj_matrix
wave_type
wireframe
world_matrix
world_matrix_array_3x4
worldview_matrix
worldviewproj_matrix
wrap
xform_type
zero

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值