游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1097|回复: 0

什么是:heat color table?请赐教。

[复制链接]

22

主题

63

帖子

63

积分

注册会员

Rank: 2

积分
63
发表于 2008-5-16 12:22:00 | 显示全部楼层 |阅读模式
这是《Shaders.for.Game.Programmers.and.Artists》一书中80面提到的一个Pixel shader:
float4x4 color_filter;
sampler Texture0;
float4 ps_main(float2 texCoord: TEXCOORD0) : COLOR
{
// Read the source color
float4 col = tex2D(Texture0, texCoord);
float Intensity;
// Compute the intensity or heat of the pixel
// In other words, compute the grayscale value of
// the pixel.
Intensity = dot(col,float4(0.299,0.587,0.184,0));
// Use the intensity to lookup the heat color table
return tex1D(Texture_Heat,Intensity);
}

请问这个Texture_Heat也就是这个the heat color table是什么样的,能给个图看看么?谢谢了。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-1-22 12:58

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表