📄 particlefloor.nvv
字号:
/************************************************************************
particleFloor.nvv
Vertex Shader for the floor of the Particle System
Each vertex contains
v0: position
v1: 2D texture coordinates
This vertex shader simply transform the position and copies the
texture coordinates.
Copyright (C) 1999, 2000 NVIDIA Corporation
*************************************************************************/
#include "ParticleSystem.h"
vs.1.1
; Transform position to clip space
dp4 oPos.x, v0, c[VSC_WORLDVIEW_PROJ_0]
dp4 oPos.y, v0, c[VSC_WORLDVIEW_PROJ_1]
dp4 oPos.z, v0, c[VSC_WORLDVIEW_PROJ_2]
dp4 oPos.w, v0, c[VSC_WORLDVIEW_PROJ_3]
; copy texture coordinates
mov oT0.xy, v1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -