mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
add vis2d
This commit is contained in:
parent
44375f019d
commit
a692e00a05
@ -85,6 +85,11 @@ PfmTrans() {
|
||||
"3-d depth values encoded in the texture coordinates.",
|
||||
&PfmTrans::dispatch_none, &_got_vis_inverse);
|
||||
|
||||
add_option
|
||||
("vis2d", "", 60,
|
||||
"Respect only the first two components of each depth value, ignoring z.",
|
||||
&PfmTrans::dispatch_none, &_got_vis_2d);
|
||||
|
||||
add_option
|
||||
("vistex", "texture.jpg", 60,
|
||||
"Specifies the name of the texture to apply to the visualization.",
|
||||
@ -129,6 +134,7 @@ bool PfmTrans::
|
||||
process_pfm(const Filename &input_filename, PfmFile &file) {
|
||||
file.set_zero_special(_got_zero_special);
|
||||
file.set_vis_inverse(_got_vis_inverse);
|
||||
file.set_vis_2d(_got_vis_2d);
|
||||
|
||||
if (_got_resize) {
|
||||
file.resize(_resize[0], _resize[1]);
|
||||
|
@ -54,6 +54,7 @@ private:
|
||||
bool _got_reverse;
|
||||
bool _got_zero_special;
|
||||
bool _got_vis_inverse;
|
||||
bool _got_vis_2d;
|
||||
bool _got_resize;
|
||||
int _resize[2];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user