Revision: 78250
          http://sourceforge.net/p/brlcad/code/78250
Author:   starseeker
Date:     2021-02-16 22:40:55 +0000 (Tue, 16 Feb 2021)
Log Message:
-----------
initialize some values and the phong shader.

Modified Paths:
--------------
    brlcad/trunk/src/adrt/librender/camera.c
    brlcad/trunk/src/isst/main.cpp

Modified: brlcad/trunk/src/adrt/librender/camera.c
===================================================================
--- brlcad/trunk/src/adrt/librender/camera.c    2021-02-16 21:24:51 UTC (rev 
78249)
+++ brlcad/trunk/src/adrt/librender/camera.c    2021-02-16 22:40:55 UTC (rev 
78250)
@@ -396,7 +396,9 @@
 {
     render_camera_thread_data_t *td;
     int d, n, res_ind, scanline, v_scanline;
-    vect_t pixel, accum, v1, v2;
+    vect_t pixel, accum;
+    vect_t v1 = VINIT_ZERO;
+    vect_t v2 = VINIT_ZERO;
     struct tie_ray_s ray;
     fastf_t view_inv;
 

Modified: brlcad/trunk/src/isst/main.cpp
===================================================================
--- brlcad/trunk/src/isst/main.cpp      2021-02-16 21:24:51 UTC (rev 78249)
+++ brlcad/trunk/src/isst/main.cpp      2021-02-16 22:40:55 UTC (rev 78250)
@@ -70,6 +70,8 @@
 
     TIENET_BUFFER_SIZE(app.buffer_image, (uint32_t)(3 * app.camera.w * 
app.camera.h));
 
+    app.texid = 0;
+
     mainWin.canvas->makeCurrent();
     glClearColor (0.0, 0, 0.0, 1);
     glBindTexture (GL_TEXTURE_2D, app.texid);
@@ -94,6 +96,8 @@
     VSETALL(app.camera.pos, app.tie->radius);
     VMOVE(app.camera.focus, app.tie->mid);
 
+    render_phong_init(&app.camera.render, NULL);
+
     render_camera_prep(&app.camera);
     render_camera_render(&app.camera, app.tie, &tile, &app.buffer_image);
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to