=
" NV_IDX_DEVICE_INLINE_MEMBER int execute( \n"
" const Sample_info_self& sample_info, \n"
" Sample_output& sample_output) \n"
" { \n"
" const uint light_id = state.self.get_light_id(); \n"
" const uint material_id = state.self.get_material_id(); \n"
" \n"
" const float3 ray_direction = normalize(sample_info.ray_direction); \n"
" float4 color = nv::index::xaclib::phong_shading( \n"
" state.scene, material_id, light_id, \n"
" ray_direction, \n"
" sample_info.sample_normal, true); \n"
" \n"
" color.w = 1.f; \n"
" const float screen_gamma = 0.6f; \n"
" color = nv::index::xaclib::gamma_correct(color, screen_gamma); \n"
" sample_output.set_color(color); \n"
" return NV_IDX_PROG_OK; \n"
" } \n"