Jump to content

HDR Irisadjustment


tipforeveryone
 Share

Recommended Posts

  1. I don't think so. I have a small test with map 07-AI and Events
  2. I put irisadjusment.lua into Map Root Post Effects list, then Editor Viewport camera was applied irisadjusment.lua, it is ok for sure.
  3. Delete original FPSPlayer prefab and replace with a single camera, check "Use Post effect" in Camera Tab, start the game, it worked too
  4. Remove irisadjustment.lua from Map Root Post Effects list and create a new .lua file to attach to the camera
function Script:Start()
	self.entity:AddPostEffect("Shaders/PostEffects/irisadjusment.lua")
end

and it does not work anymore.

It seems only work if shader file is put into Post Effect list. This is weird.

Link to comment
Share on other sites

1 hour ago, tipforeveryone said:
  1. I don't think so. I have a small test with map 07-AI and Events
  2. I put irisadjusment.lua into Map Root Post Effects list, then Editor Viewport camera was applied irisadjusment.lua, it is ok for sure.
  3. Delete original FPSPlayer prefab and replace with a single camera, check "Use Post effect" in Camera Tab, start the game, it worked too
  4. Remove irisadjustment.lua from Map Root Post Effects list and create a new .lua file to attach to the camera

function Script:Start()
	self.entity:AddPostEffect("Shaders/PostEffects/irisadjusment.lua")
end

and it does not work anymore.

It seems only work if shader file is put into Post Effect list. This is weird.

You need to look at your output text in the script editor when you run the game - it tells you that the 'irisadjusment.lua' was not loaded. It did not load because that file doesn't exist. The file name is 'irisadjusTment.lua'.

  • Thanks 1

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...